summaryrefslogtreecommitdiff
path: root/src/ui/screen_lua.cpp
diff options
context:
space:
mode:
authorailurux <ailuruxx@gmail.com>2024-03-10 13:20:17 +1100
committerailurux <ailuruxx@gmail.com>2024-03-10 13:20:17 +1100
commit1133d4621508b7ec6bac4ab8731f3493066ceeee (patch)
treeef9e703effe08f9fb63e26a72c2e498e8ff62012 /src/ui/screen_lua.cpp
parent20c2816a7b2497c2ab0d07a65fb640050a929371 (diff)
downloadtangara-fw-1133d4621508b7ec6bac4ab8731f3493066ceeee.tar.gz
WIP Lua Theming- style classes
Diffstat (limited to 'src/ui/screen_lua.cpp')
-rw-r--r--src/ui/screen_lua.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/ui/screen_lua.cpp b/src/ui/screen_lua.cpp
index 5130b4f7..b3554241 100644
--- a/src/ui/screen_lua.cpp
+++ b/src/ui/screen_lua.cpp
@@ -8,13 +8,16 @@
#include "core/lv_obj_tree.h"
#include "lua.hpp"
+#include "themes.hpp"
#include "luavgl.h"
namespace ui {
namespace screens {
-Lua::Lua() : s_(nullptr), obj_ref_() {}
+Lua::Lua() : s_(nullptr), obj_ref_() {
+ themes::Theme::instance()->ApplyStyle(root_, "root");
+}
Lua::~Lua() {
if (s_ && obj_ref_) {