summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorailurux <ailuruxx@gmail.com>2024-08-29 16:08:11 +1000
committerailurux <ailuruxx@gmail.com>2024-08-29 16:08:11 +1000
commit20d5de38cc3b0c236e68b409ab1870dbb3812174 (patch)
treeff4ad4611d807ac6c98fe971d80793ebc3f14acb
parent91eaed4b37c7cda29103d3478df3e2c6356f8396 (diff)
downloadtangara-fw-20d5de38cc3b0c236e68b409ab1870dbb3812174.tar.gz
Style regulatory icons so they are visible with the light theme
-rw-r--r--lua/settings.lua1
-rw-r--r--lua/theme_light.lua6
2 files changed, 7 insertions, 0 deletions
diff --git a/lua/settings.lua b/lua/settings.lua
index 31fb5945..934d32a2 100644
--- a/lua/settings.lua
+++ b/lua/settings.lua
@@ -760,6 +760,7 @@ local RegulatoryScreen = SettingsScreen:new {
pad_top = 4,
pad_column = 4,
}
+ theme.set_style(logo_container, "regulatory_icons")
button_container:add_style(styles.list_item)
logo_container:Image { src = "//lua/img/ce.png" }
diff --git a/lua/theme_light.lua b/lua/theme_light.lua
index 3da3de9b..275d06ca 100644
--- a/lua/theme_light.lua
+++ b/lua/theme_light.lua
@@ -280,6 +280,12 @@ local theme_light = {
image_recolor = "#fdd833",
}},
},
+ regulatory_icons = {
+ {lvgl.PART.MAIN, lvgl.Style {
+ image_recolor_opa = 255,
+ image_recolor = text_color,
+ }},
+ },
}
return theme_light