From 6853215ec074970b5bee0bfde212297501c4bc4d Mon Sep 17 00:00:00 2001 From: Ellis Judge Date: Mon, 14 Aug 2023 18:56:48 +0100 Subject: [PATCH] Heart Rate: Updated UI Updated start button in Heart Rate app to match timer app. Fixes Issue #1246 --- src/displayapp/screens/HeartRate.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/displayapp/screens/HeartRate.cpp b/src/displayapp/screens/HeartRate.cpp index f611fa26..499af18b 100644 --- a/src/displayapp/screens/HeartRate.cpp +++ b/src/displayapp/screens/HeartRate.cpp @@ -56,7 +56,9 @@ HeartRate::HeartRate(Controllers::HeartRateController& heartRateController, Syst btn_startStop = lv_btn_create(lv_scr_act(), nullptr); btn_startStop->user_data = this; - lv_obj_set_height(btn_startStop, 50); + lv_obj_set_size(btn_startStop, lv_obj_get_width(lv_scr_act()), 50); + lv_obj_set_style_local_radius(btn_startStop, LV_BTN_PART_MAIN, LV_STATE_DEFAULT, LV_RADIUS_CIRCLE); + lv_obj_set_style_local_bg_color(btn_startStop, LV_BTN_PART_MAIN, LV_STATE_DEFAULT, Colors::bgAlt); lv_obj_set_event_cb(btn_startStop, btnStartStopEventHandler); lv_obj_align(btn_startStop, nullptr, LV_ALIGN_IN_BOTTOM_MID, 0, 0);