summaryrefslogtreecommitdiff
path: root/src/displayapp/screens/List.cpp
diff options
context:
space:
mode:
authordavidpkj <davidpenkow1@gmail.com>2023-01-22 17:48:03 +0100
committerdavidpkj <davidpenkow1@gmail.com>2023-01-22 17:48:03 +0100
commit1f6e32fae73463ed5ec110a304998d90f6dc3ac4 (patch)
treec423e1eecee8994295a07cca2ffbbfd41fdb5b06 /src/displayapp/screens/List.cpp
parenta7f8b59bfb1641dea7f30a267c6bf7e882d9edbf (diff)
Change: colors & menu items
Diffstat (limited to 'src/displayapp/screens/List.cpp')
-rw-r--r--src/displayapp/screens/List.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/displayapp/screens/List.cpp b/src/displayapp/screens/List.cpp
index 3f219ea1..5c79e60e 100644
--- a/src/displayapp/screens/List.cpp
+++ b/src/displayapp/screens/List.cpp
@@ -45,7 +45,7 @@ List::List(uint8_t screenID,
static constexpr int btnHeight = (LV_HOR_RES_MAX - ((MAXLISTITEMS - 1) * innerPad)) / MAXLISTITEMS;
itemApps[i] = lv_btn_create(container, nullptr);
lv_obj_set_style_local_radius(itemApps[i], LV_BTN_PART_MAIN, LV_STATE_DEFAULT, btnHeight / 3);
- lv_obj_set_style_local_bg_color(itemApps[i], LV_BTN_PART_MAIN, LV_STATE_DEFAULT, Colors::bgAlt);
+ lv_obj_set_style_local_bg_color(itemApps[i], LV_BTN_PART_MAIN, LV_STATE_DEFAULT, Colors::bg);
lv_obj_set_width(itemApps[i], LV_HOR_RES - 8);
lv_obj_set_height(itemApps[i], btnHeight);
lv_obj_set_event_cb(itemApps[i], ButtonEventHandler);
@@ -54,7 +54,7 @@ List::List(uint8_t screenID,
lv_obj_set_style_local_clip_corner(itemApps[i], LV_BTN_PART_MAIN, LV_STATE_DEFAULT, true);
lv_obj_t* icon = lv_label_create(itemApps[i], nullptr);
- lv_obj_set_style_local_text_color(icon, LV_LABEL_PART_MAIN, LV_STATE_DEFAULT, LV_COLOR_YELLOW);
+ lv_obj_set_style_local_text_color(icon, LV_LABEL_PART_MAIN, LV_STATE_DEFAULT, Colors::primary);
lv_label_set_text_static(icon, applications[i].icon);
lv_label_set_long_mode(icon, LV_LABEL_LONG_CROP);
lv_label_set_align(icon, LV_LABEL_ALIGN_CENTER);