summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorailurux <ailuruxx@gmail.com>2024-08-15 16:36:16 +1000
committerailurux <ailuruxx@gmail.com>2024-08-15 16:36:16 +1000
commitf203bfde606fab1f001b6085edb02a6f94e9fbdb (patch)
treeab2632725807be57399ff872c5e28f003d1dff7d
parent0662bb037b94ffc50ee7ce313c348cbe6b7f6e4c (diff)
downloadtangara-fw-f203bfde606fab1f001b6085edb02a6f94e9fbdb.tar.gz
Add border to switch widget
-rw-r--r--lua/theme_light.lua6
1 files changed, 6 insertions, 0 deletions
diff --git a/lua/theme_light.lua b/lua/theme_light.lua
index 03d076f4..9e35cf9e 100644
--- a/lua/theme_light.lua
+++ b/lua/theme_light.lua
@@ -130,6 +130,9 @@ local theme_light = {
width = 18,
height = 10,
radius = 32767, -- LV_RADIUS_CIRCLE = 0x7fff
+ bg_color = background_muted,
+ border_color = border_color,
+ border_width = 1,
}},
{lvgl.PART.INDICATOR, lvgl.Style {
radius = 32767, -- LV_RADIUS_CIRCLE = 0x7fff
@@ -142,6 +145,9 @@ local theme_light = {
{lvgl.PART.KNOB, lvgl.Style {
radius = 32767, -- LV_RADIUS_CIRCLE = 0x7fff
bg_opa = lvgl.OPA(100),
+ bg_color = background_muted,
+ border_color = border_color,
+ border_width = 1,
}},
{lvgl.PART.KNOB | lvgl.STATE.FOCUSED, lvgl.Style {
bg_color = highlight_color,