@@ -15,21 +15,19 @@ namespace {
1515 }
1616}
1717
18- constexpr std::array<Option, 8 > SettingHeartRate::options;
19-
2018SettingHeartRate::SettingHeartRate (Pinetime::Controllers::Settings& settingsController) : settingsController {settingsController} {
2119
22- lv_obj_t * container1 = lv_cont_create (lv_scr_act (), nullptr );
20+ lv_obj_t * container = lv_cont_create (lv_scr_act (), nullptr );
2321
24- lv_obj_set_style_local_bg_opa (container1 , LV_CONT_PART_MAIN, LV_STATE_DEFAULT, LV_OPA_TRANSP);
25- lv_obj_set_style_local_pad_all (container1 , LV_CONT_PART_MAIN, LV_STATE_DEFAULT, 5 );
26- lv_obj_set_style_local_pad_inner (container1 , LV_CONT_PART_MAIN, LV_STATE_DEFAULT, 5 );
27- lv_obj_set_style_local_border_width (container1 , LV_CONT_PART_MAIN, LV_STATE_DEFAULT, 0 );
22+ lv_obj_set_style_local_bg_opa (container , LV_CONT_PART_MAIN, LV_STATE_DEFAULT, LV_OPA_TRANSP);
23+ lv_obj_set_style_local_pad_all (container , LV_CONT_PART_MAIN, LV_STATE_DEFAULT, 5 );
24+ lv_obj_set_style_local_pad_inner (container , LV_CONT_PART_MAIN, LV_STATE_DEFAULT, 5 );
25+ lv_obj_set_style_local_border_width (container , LV_CONT_PART_MAIN, LV_STATE_DEFAULT, 0 );
2826
29- lv_obj_set_pos (container1 , 10 , 60 );
30- lv_obj_set_width (container1 , LV_HOR_RES - 20 );
31- lv_obj_set_height (container1 , LV_VER_RES - 50 );
32- lv_cont_set_layout (container1 , LV_LAYOUT_PRETTY_TOP);
27+ lv_obj_set_pos (container , 10 , 60 );
28+ lv_obj_set_width (container , LV_HOR_RES - 20 );
29+ lv_obj_set_height (container , LV_VER_RES - 50 );
30+ lv_cont_set_layout (container , LV_LAYOUT_PRETTY_TOP);
3331
3432 lv_obj_t * title = lv_label_create (lv_scr_act (), nullptr );
3533 lv_label_set_text_static (title, " Backg. Interval" );
@@ -47,7 +45,7 @@ SettingHeartRate::SettingHeartRate(Pinetime::Controllers::Settings& settingsCont
4745 unsigned int currentInterval = settingsController.GetHeartRateBackgroundMeasurementInterval ();
4846
4947 for (unsigned int i = 0 ; i < options.size (); i++) {
50- cbOption[i] = lv_checkbox_create (container1 , nullptr );
48+ cbOption[i] = lv_checkbox_create (container , nullptr );
5149 lv_checkbox_set_text (cbOption[i], options[i].name );
5250 cbOption[i]->user_data = this ;
5351 lv_obj_set_event_cb (cbOption[i], event_handler);
0 commit comments