Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit b93c2e7

Browse files
committedJan 18, 2025·
centered timer button by connecting text object to button object
1 parent 3e23ee7 commit b93c2e7

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)
Please sign in to comment.