diff options
| author | ailurux <ailuruxx@gmail.com> | 2024-03-27 16:07:22 +1100 |
|---|---|---|
| committer | ailurux <ailuruxx@gmail.com> | 2024-03-27 16:07:22 +1100 |
| commit | 489fbceb2b5a623ea502ab647f023d2e2e566121 (patch) | |
| tree | d80da1d5427e56e11defaaabd916236bd7f69a3c /lua/main.lua | |
| parent | 223c4cbbc91ca6727dd1ceb076640e59bb6ec25b (diff) | |
| download | tangara-fw-489fbceb2b5a623ea502ab647f023d2e2e566121.tar.gz | |
Update icons and volume dialogue to use themes
Diffstat (limited to 'lua/main.lua')
| -rw-r--r-- | lua/main.lua | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/lua/main.lua b/lua/main.lua index 1a605dab..dc73c964 100644 --- a/lua/main.lua +++ b/lua/main.lua @@ -6,6 +6,9 @@ local time = require("time") local lock_time = time.ticks() +local theme_dark = require("theme_dark") +theme.set(theme_dark) + -- Set up property bindings that are used across every screen. GLOBAL_BINDINGS = { -- Show an alert with the current volume whenever the volume changes @@ -20,11 +23,10 @@ GLOBAL_BINDINGS = { align_items = "center", align_content = "center", }, - bg_opa = lvgl.OPA(100), - bg_color = "#fafafa", radius = 8, pad_all = 2, }) + theme.set_style(container, "pop_up") container:Label { text = string.format("Volume %i%%", pct), text_font = font.fusion_10 @@ -52,9 +54,6 @@ GLOBAL_BINDINGS = { end), } -local theme_dark = require("theme_dark") -theme.set(theme_dark) - local backstack = require("backstack") local main_menu = require("main_menu") |
