Skip to content

Commit

Permalink
centered timer button by connecting text object to button object
Browse files Browse the repository at this point in the history
  • Loading branch information
tituscmd committed Jan 21, 2025
1 parent dbe8820 commit 6f9caa4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/displayapp/screens/Timer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -59,8 +59,8 @@ Timer::Timer(Controllers::Timer& timerController) : timer {timerController} {
lv_obj_set_event_cb(btnPlayPause, btnEventHandler);
lv_obj_set_size(btnPlayPause, LV_HOR_RES, 50);

txtPlayPause = lv_label_create(lv_scr_act(), nullptr);
lv_obj_align(txtPlayPause, btnPlayPause, LV_ALIGN_CENTER, 0, 0);
txtPlayPause = lv_label_create(btnPlayPause, nullptr);
//lv_obj_align(txtPlayPause, btnPlayPause, LV_ALIGN_CENTER, 0, 0);

if (timer.IsRunning()) {
SetTimerRunning();
Expand Down

0 comments on commit 6f9caa4

Please sign in to comment.