Skip to content

Commit 6f9caa4

Browse files
committed
centered timer button by connecting text object to button object
1 parent dbe8820 commit 6f9caa4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/displayapp/screens/Timer.cpp

+2-2
Original file line numberDiff line numberDiff line change
@@ -59,8 +59,8 @@ Timer::Timer(Controllers::Timer& timerController) : timer {timerController} {
5959
lv_obj_set_event_cb(btnPlayPause, btnEventHandler);
6060
lv_obj_set_size(btnPlayPause, LV_HOR_RES, 50);
6161

62-
txtPlayPause = lv_label_create(lv_scr_act(), nullptr);
63-
lv_obj_align(txtPlayPause, btnPlayPause, LV_ALIGN_CENTER, 0, 0);
62+
txtPlayPause = lv_label_create(btnPlayPause, nullptr);
63+
//lv_obj_align(txtPlayPause, btnPlayPause, LV_ALIGN_CENTER, 0, 0);
6464

6565
if (timer.IsRunning()) {
6666
SetTimerRunning();

0 commit comments

Comments
 (0)