diff options
author | davidpkj <davidpenkow1@gmail.com> | 2023-01-24 21:24:28 +0100 |
---|---|---|
committer | davidpkj <davidpenkow1@gmail.com> | 2023-01-24 21:24:28 +0100 |
commit | c95a80f4e46e2942bf295ae17f4c7eae27e8495b (patch) | |
tree | 5fc23d3be1352c048cf39bcfeca33e5cef498e75 /src/displayapp/screens/List.cpp | |
parent | a3e14c012d76fc8f7ad4c16ad9dc67e8995ce10e (diff) | |
parent | 52f3310d0077a352ade7e1f9df6a1d201ee0c631 (diff) |
merged ui-cleaning into develop
Diffstat (limited to 'src/displayapp/screens/List.cpp')
-rw-r--r-- | src/displayapp/screens/List.cpp | 4 |
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); |