Heart Rate: Updated UI

Updated start button in Heart Rate app to match timer app.
Fixes Issue #1246
This commit is contained in:
Ellis Judge 2023-08-14 18:56:48 +01:00
parent 782ef7902f
commit 6853215ec0

View file

@ -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);