@@ -48,14 +48,14 @@ WatchFaceCasioStyleG7710::WatchFaceCasioStyleG7710(Controllers::DateTime& dateTi
48
48
font_segment115 = lv_font_load (" F:/fonts/7segments_115.bin" );
49
49
}
50
50
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%" );
55
55
56
56
batteryIcon.Create (lv_scr_act ());
57
57
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 );
59
59
60
60
batteryPlug = lv_label_create (lv_scr_act (), nullptr );
61
61
lv_obj_set_style_local_text_color (batteryPlug, LV_LABEL_PART_MAIN, LV_STATE_DEFAULT, color_text);
@@ -203,15 +203,15 @@ void WatchFaceCasioStyleG7710::Refresh() {
203
203
if (batteryPercentRemaining.IsUpdated ()) {
204
204
auto batteryPercent = batteryPercentRemaining.Get ();
205
205
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);
207
207
}
208
208
209
209
bleState = bleController.IsConnected ();
210
210
bleRadioEnabled = bleController.IsRadioEnabled ();
211
211
if (bleState.IsUpdated () || bleRadioEnabled.IsUpdated ()) {
212
212
lv_label_set_text_static (bleIcon, BleIcon::GetIcon (bleState.Get ()));
213
213
}
214
- lv_obj_realign (label_battery_vallue );
214
+ lv_obj_realign (label_battery_value );
215
215
lv_obj_realign (batteryIcon.GetObject ());
216
216
lv_obj_realign (batteryPlug);
217
217
lv_obj_realign (bleIcon);
0 commit comments