Centralize most color definitions (#1258)

This commit is contained in:
Riku Isokoski
2022-08-16 08:21:23 +03:00
committed by GitHub
parent d6aa767bda
commit 78fc1682da
32 changed files with 105 additions and 90 deletions

View File

@@ -19,7 +19,7 @@ void StatusIcons::Create() {
lv_label_set_text_static(bleIcon, Screens::Symbols::bluetooth);
batteryPlug = lv_label_create(container, nullptr);
lv_obj_set_style_local_text_color(batteryPlug, LV_LABEL_PART_MAIN, LV_STATE_DEFAULT, lv_color_hex(0xFF0000));
lv_obj_set_style_local_text_color(batteryPlug, LV_LABEL_PART_MAIN, LV_STATE_DEFAULT, LV_COLOR_RED);
lv_label_set_text_static(batteryPlug, Screens::Symbols::plug);
batteryIcon.Create(container);