diff options
| author | ailurux <ailuruxx@gmail.com> | 2023-07-08 12:59:17 +1000 |
|---|---|---|
| committer | ailurux <ailuruxx@gmail.com> | 2023-07-08 12:59:17 +1000 |
| commit | 22221ae4f66404644ca748d7ce59c0fa5325032d (patch) | |
| tree | 2eb18d6c11721fff2fd38fd13ad44cb14c5f9b84 /src | |
| parent | 3de310f6e4c170c4c4bfb789cb07ca10e5ab17b8 (diff) | |
| download | tangara-fw-22221ae4f66404644ca748d7ce59c0fa5325032d.tar.gz | |
Blue menu indicator
Diffstat (limited to 'src')
| -rw-r--r-- | src/ui/screen_menu.cpp | 1 | ||||
| -rw-r--r-- | src/ui/screen_track_browser.cpp | 1 |
2 files changed, 2 insertions, 0 deletions
diff --git a/src/ui/screen_menu.cpp b/src/ui/screen_menu.cpp index 743dc6fa..91e79dd5 100644 --- a/src/ui/screen_menu.cpp +++ b/src/ui/screen_menu.cpp @@ -43,6 +43,7 @@ Menu::Menu(std::vector<database::IndexInfo> indexes) : indexes_(indexes) { for (database::IndexInfo& index : indexes_) { lv_obj_t* item = lv_list_add_btn(list, NULL, index.name.c_str()); + lv_obj_set_style_bg_color(item, lv_palette_main(LV_PALETTE_BLUE), LV_PART_MAIN | LV_STATE_FOCUSED); lv_obj_add_event_cb(item, item_click_cb, LV_EVENT_CLICKED, &index); lv_group_add_obj(group_, item); } diff --git a/src/ui/screen_track_browser.cpp b/src/ui/screen_track_browser.cpp index 93ca277e..38a361bf 100644 --- a/src/ui/screen_track_browser.cpp +++ b/src/ui/screen_track_browser.cpp @@ -165,6 +165,7 @@ auto TrackBrowser::AddResults(Position pos, text = "[ no data ]"; } lv_obj_t* item = lv_list_add_btn(list_, NULL, text->c_str()); + lv_obj_set_style_bg_color(item, lv_palette_main(LV_PALETTE_BLUE), LV_PART_MAIN | LV_STATE_FOCUSED); lv_obj_add_event_cb(item, item_click_cb, LV_EVENT_CLICKED, this); lv_obj_add_event_cb(item, item_select_cb, LV_EVENT_FOCUSED, this); lv_group_add_obj(group_, item); |
