From 6c20eafd05025b5c65b975d10ec72005ea3966ec Mon Sep 17 00:00:00 2001 From: jacqueline Date: Thu, 5 Oct 2023 14:24:00 +1100 Subject: First pass at having some kind of design and theming --- src/ui/modal.cpp | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/ui/modal.cpp') 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_); } -- cgit v1.2.3