From 6f9caa40b5f36cd9c72bd2e17d884823d5807318 Mon Sep 17 00:00:00 2001 From: Titus Kendzorra Date: Sat, 18 Jan 2025 15:30:32 +0100 Subject: [PATCH] centered timer button by connecting text object to button object --- src/displayapp/screens/Timer.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/displayapp/screens/Timer.cpp b/src/displayapp/screens/Timer.cpp index f6d5e73bdc..431d3d8108 100644 --- a/src/displayapp/screens/Timer.cpp +++ b/src/displayapp/screens/Timer.cpp @@ -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();