diff options
| author | jacqueline <me@jacqueline.id.au> | 2023-09-28 10:43:48 +1000 |
|---|---|---|
| committer | jacqueline <me@jacqueline.id.au> | 2023-09-28 10:43:48 +1000 |
| commit | 6a47edcd35884095946f761fa3aa2367c7c26442 (patch) | |
| tree | 5b34e1bf14759dcc78b6611b1b6538dc03119860 /src/ui/screen_menu.cpp | |
| parent | f09ba5ffd53bf7d28e0dc516c00a8f69ca7efae9 (diff) | |
| download | tangara-fw-6a47edcd35884095946f761fa3aa2367c7c26442.tar.gz | |
Use databinding for the top bar. It's so nice now!
Diffstat (limited to 'src/ui/screen_menu.cpp')
| -rw-r--r-- | src/ui/screen_menu.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/ui/screen_menu.cpp b/src/ui/screen_menu.cpp index 3d36c017..44f49b32 100644 --- a/src/ui/screen_menu.cpp +++ b/src/ui/screen_menu.cpp @@ -18,6 +18,7 @@ #include "hal/lv_hal_disp.h" #include "index.hpp" #include "misc/lv_area.h" +#include "model_top_bar.hpp" #include "ui_events.hpp" #include "ui_fsm.hpp" #include "widget_top_bar.hpp" @@ -45,8 +46,8 @@ static void index_click_cb(lv_event_t* ev) { events::Ui().Dispatch(internal::IndexSelected{.index = *index}); } -Menu::Menu(std::vector<database::IndexInfo> indexes) - : MenuScreen(" ", false), indexes_(indexes) { +Menu::Menu(models::TopBar& top_bar, std::vector<database::IndexInfo> indexes) + : MenuScreen(top_bar, " ", false), indexes_(indexes) { lv_obj_t* list = lv_list_create(content_); lv_obj_set_size(list, lv_pct(100), lv_pct(100)); |
