@@ -48,14 +48,14 @@ WatchFaceCasioStyleG7710::WatchFaceCasioStyleG7710(Controllers::DateTime& dateTi
4848 font_segment115 = lv_font_load (" F:/fonts/7segments_115.bin" );
4949 }
5050
51- label_battery_vallue = lv_label_create (lv_scr_act (), nullptr );
52- lv_obj_align (label_battery_vallue , lv_scr_act (), LV_ALIGN_IN_TOP_RIGHT, 0 , 0 );
53- lv_obj_set_style_local_text_color (label_battery_vallue , LV_LABEL_PART_MAIN, LV_STATE_DEFAULT, color_text);
54- lv_label_set_text_static (label_battery_vallue , " 00%" );
51+ label_battery_value = lv_label_create (lv_scr_act (), nullptr );
52+ lv_obj_align (label_battery_value , lv_scr_act (), LV_ALIGN_IN_TOP_RIGHT, 0 , 0 );
53+ lv_obj_set_style_local_text_color (label_battery_value , LV_LABEL_PART_MAIN, LV_STATE_DEFAULT, color_text);
54+ lv_label_set_text_static (label_battery_value , " 00%" );
5555
5656 batteryIcon.Create (lv_scr_act ());
5757 batteryIcon.SetColor (color_text);
58- lv_obj_align (batteryIcon.GetObject (), label_battery_vallue , LV_ALIGN_OUT_LEFT_MID, -5 , 0 );
58+ lv_obj_align (batteryIcon.GetObject (), label_battery_value , LV_ALIGN_OUT_LEFT_MID, -5 , 0 );
5959
6060 batteryPlug = lv_label_create (lv_scr_act (), nullptr );
6161 lv_obj_set_style_local_text_color (batteryPlug, LV_LABEL_PART_MAIN, LV_STATE_DEFAULT, color_text);
@@ -203,15 +203,15 @@ void WatchFaceCasioStyleG7710::Refresh() {
203203 if (batteryPercentRemaining.IsUpdated ()) {
204204 auto batteryPercent = batteryPercentRemaining.Get ();
205205 batteryIcon.SetBatteryPercentage (batteryPercent);
206- lv_label_set_text_fmt (label_battery_vallue , " %d%%" , batteryPercent);
206+ lv_label_set_text_fmt (label_battery_value , " %d%%" , batteryPercent);
207207 }
208208
209209 bleState = bleController.IsConnected ();
210210 bleRadioEnabled = bleController.IsRadioEnabled ();
211211 if (bleState.IsUpdated () || bleRadioEnabled.IsUpdated ()) {
212212 lv_label_set_text_static (bleIcon, BleIcon::GetIcon (bleState.Get ()));
213213 }
214- lv_obj_realign (label_battery_vallue );
214+ lv_obj_realign (label_battery_value );
215215 lv_obj_realign (batteryIcon.GetObject ());
216216 lv_obj_realign (batteryPlug);
217217 lv_obj_realign (bleIcon);
0 commit comments