We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4e1ee90 commit bb8923bCopy full SHA for bb8923b
1 file changed
src/displayapp/screens/Timer.cpp
@@ -59,8 +59,8 @@ Timer::Timer(Controllers::Timer& timerController) : timer {timerController} {
59
lv_obj_set_event_cb(btnPlayPause, btnEventHandler);
60
lv_obj_set_size(btnPlayPause, LV_HOR_RES, 50);
61
62
- txtPlayPause = lv_label_create(lv_scr_act(), nullptr);
63
- lv_obj_align(txtPlayPause, btnPlayPause, LV_ALIGN_CENTER, 0, 0);
+ // Create the label as a child of the button so it stays centered by default
+ txtPlayPause = lv_label_create(btnPlayPause, nullptr);
64
65
if (timer.IsRunning()) {
66
SetTimerRunning();
0 commit comments