@@ -349,18 +349,21 @@ void ws_display_ui_helper::build_scr_monitor() {
349
349
lv_canvas_draw_rect (canvas, 0 , 0 , 240 , 25 , &rect_dsc);
350
350
351
351
// Add battery icon to status bar
352
- // Future TODO: Optional timer to check battery level on some boards
353
- // Note: FunHouse won't require this and should always be have a full battery
354
- // displayed
355
352
statusbar_icon_bat = lv_label_create (lv_scr_act ());
356
353
lv_label_set_text (statusbar_icon_bat, LV_SYMBOL_BATTERY_FULL);
354
+ static lv_style_t styleIconBat;
355
+ lv_style_init (&styleIconBat);
356
+ lv_style_set_text_color (&styleIconBat, lv_color_hex (0x000000 ));
357
+ lv_obj_add_style (statusbar_icon_bat, &styleIconBat, LV_PART_MAIN);
357
358
lv_obj_align (statusbar_icon_bat, LV_ALIGN_TOP_RIGHT, -5 , 6 );
358
359
359
360
// Add WiFi icon to status bar
360
- // Future TODO: Timer to check if we are still connected to WiFi levels every
361
- // 2000ms
362
361
statusbar_icon_wifi = lv_label_create (lv_scr_act ());
363
362
lv_label_set_text (statusbar_icon_wifi, LV_SYMBOL_WIFI);
363
+ static lv_style_t styleIconWiFiStatusbar;
364
+ lv_style_init (&styleIconWiFiStatusbar);
365
+ lv_style_set_text_color (&styleIconWiFiStatusbar, lv_color_hex (0x000000 ));
366
+ lv_obj_add_style (statusbar_icon_wifi, &styleIconWiFiStatusbar, LV_PART_MAIN);
364
367
lv_obj_align (statusbar_icon_wifi, LV_ALIGN_TOP_RIGHT, -30 , 5 );
365
368
366
369
// Add Turtle icon to status bar
0 commit comments