diff options
| author | jacqueline <me@jacqueline.id.au> | 2023-10-05 14:24:00 +1100 |
|---|---|---|
| committer | jacqueline <me@jacqueline.id.au> | 2023-10-05 14:24:00 +1100 |
| commit | 6c20eafd05025b5c65b975d10ec72005ea3966ec (patch) | |
| tree | ab36fb60ed6be665f9664faf0fd7af73263e3d5d /src/ui/modal.cpp | |
| parent | bf1fc5a2a0f408a8d8a54d4329257a10d077c4fb (diff) | |
| download | tangara-fw-6c20eafd05025b5c65b975d10ec72005ea3966ec.tar.gz | |
First pass at having some kind of design and theming
Diffstat (limited to 'src/ui/modal.cpp')
| -rw-r--r-- | src/ui/modal.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/ui/modal.cpp b/src/ui/modal.cpp index 36376093..3cab85f5 100644 --- a/src/ui/modal.cpp +++ b/src/ui/modal.cpp @@ -21,6 +21,7 @@ #include "index.hpp" #include "misc/lv_area.h" #include "screen.hpp" +#include "themes.hpp" #include "ui_events.hpp" #include "ui_fsm.hpp" #include "widget_top_bar.hpp" @@ -40,6 +41,8 @@ Modal::Modal(Screen* host) lv_obj_set_style_bg_opa(root_, LV_OPA_COVER, 0); lv_obj_set_style_bg_color(root_, lv_color_white(), 0); + themes::Theme::instance()->ApplyStyle(root_, themes::Style::kPopup); + host_->modal_group(group_); } |
