Multi screen support, with dyn alignment (#2801)

This commit is contained in:
Totoo
2025-10-03 19:10:10 +02:00
committed by GitHub
parent 23cabb8b8a
commit 371b6b5079
161 changed files with 4042 additions and 4157 deletions
+5 -5
View File
@@ -57,8 +57,8 @@ class StopwatchView : public View {
/* m m s s ms ms ms*/
Labels labels{
{{0 * 8, 1 * 16}, "TOTAL:", Theme::getInstance()->fg_light->foreground},
{{0 * 8, 7 * 16}, "LAP:", Theme::getInstance()->fg_light->foreground},
{{UI_POS_X(0), 1 * 16}, "TOTAL:", Theme::getInstance()->fg_light->foreground},
{{UI_POS_X(0), 7 * 16}, "LAP:", Theme::getInstance()->fg_light->foreground},
};
OptionsField options_ms_display_level{
@@ -71,15 +71,15 @@ class StopwatchView : public View {
Painter painter;
Button button_run_stop{
{72, 210, 96, 24},
{UI_POS_X_CENTER(12), 210, 96, 24},
"START"};
Button button_reset_lap{
{72, screen_height - 80, 96, 24},
{UI_POS_X_CENTER(12), screen_height - 80, 96, 24},
"RESET"};
Button button_done{
{72, screen_height - 50, 96, 24},
{UI_POS_X_CENTER(12), screen_height - 50, 96, 24},
"EXIT"};
MessageHandlerRegistration message_handler_frame_sync{