summaryrefslogtreecommitdiff
path: root/lua
diff options
context:
space:
mode:
Diffstat (limited to 'lua')
-rw-r--r--lua/img/db.pngbin4557 -> 5361 bytes
-rw-r--r--lua/theme_dark.lua10
-rw-r--r--lua/widgets.lua2
3 files changed, 12 insertions, 0 deletions
diff --git a/lua/img/db.png b/lua/img/db.png
index 3952ded2..6245fab2 100644
--- a/lua/img/db.png
+++ b/lua/img/db.png
Binary files differ
diff --git a/lua/theme_dark.lua b/lua/theme_dark.lua
index 21cfe76c..8c1da65c 100644
--- a/lua/theme_dark.lua
+++ b/lua/theme_dark.lua
@@ -17,6 +17,8 @@ local theme_dark = {
{lvgl.PART.MAIN, lvgl.Style {
bg_opa = lvgl.OPA(100),
bg_color = background_color, -- Root background color
+ bg_grad_dir = 1,
+ bg_grad_color = "#1d0e38",
text_color = text_color
}},
},
@@ -33,11 +35,13 @@ local theme_dark = {
pad_top = 1,
pad_bottom = 1,
bg_color = background_color,
+ img_opa = 180,
radius = 5,
}},
{lvgl.PART.MAIN | lvgl.STATE.FOCUSED, lvgl.Style {
bg_opa = lvgl.OPA(100),
bg_color = highlight_color,
+ img_opa = 255,
}},
},
listbutton = {
@@ -131,6 +135,12 @@ local theme_dark = {
bg_color = highlight_color,
}},
},
+ database_indicator = {
+ {lvgl.PART.MAIN, lvgl.Style {
+ img_recolor_opa = 180,
+ img_recolor = highlight_color,
+ }},
+ },
settings_title = {
{lvgl.PART.MAIN, lvgl.Style {
pad_top = 2,
diff --git a/lua/widgets.lua b/lua/widgets.lua
index 15212ded..b9588edb 100644
--- a/lua/widgets.lua
+++ b/lua/widgets.lua
@@ -94,6 +94,8 @@ function widgets.StatusBar(parent, opts)
status_bar.db_updating = status_bar.root:Image {
src = "//lua/img/db.png"
}
+ theme.set_style(status_bar.db_updating, "database_indicator")
+
status_bar.bluetooth = status_bar.root:Image {}
status_bar.battery = status_bar.root:Image {}
status_bar.chg = status_bar.battery:Image {