From 9a47e43ab72daa96bfb3e95e95c30e5703f39397 Mon Sep 17 00:00:00 2001 From: ailurux Date: Thu, 12 Sep 2024 05:20:07 +0000 Subject: daniel/theme-tweaks (#102) - Multiple improvements + fixes - Add charge outline icon for improving readability with monochromatic themes - Add a chevron icon and update existing dropdown menus - Rename `set_style` to `set_subject` for disambiguation with lvgl's Style type Reviewed-on: https://codeberg.org/cool-tech-zone/tangara-fw/pulls/102 Reviewed-by: cooljqln Co-authored-by: ailurux Co-committed-by: ailurux --- lua/theme_hicon.lua | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) (limited to 'lua/theme_hicon.lua') diff --git a/lua/theme_hicon.lua b/lua/theme_hicon.lua index 30947c18..59446bd7 100644 --- a/lua/theme_hicon.lua +++ b/lua/theme_hicon.lua @@ -40,6 +40,7 @@ local theme_hicon = { }, button = { {lvgl.PART.MAIN, lvgl.Style { + bg_opa = lvgl.OPA(100), pad_left = 2, pad_right = 2, pad_top = 1, @@ -188,6 +189,14 @@ local theme_hicon = { bg_color = text_color, text_color = background_color, }}, + {lvgl.PART.INDICATOR, lvgl.Style { + image_recolor_opa = 255, + image_recolor = text_color, + }}, + {lvgl.PART.INDICATOR | lvgl.STATE.FOCUSED, lvgl.Style { + image_recolor_opa = 255, + image_recolor = background_color, + }}, }, dropdownlist = { {lvgl.PART.MAIN, lvgl.Style{ @@ -244,6 +253,12 @@ local theme_hicon = { radius = 4 }}, }, + bluetooth_icon = { + {lvgl.PART.MAIN, lvgl.Style { + image_recolor_opa = 255, + image_recolor = text_color, + }}, + }, battery = { {lvgl.PART.MAIN, lvgl.Style { image_recolor_opa = 255, @@ -268,6 +283,18 @@ local theme_hicon = { image_recolor = text_color, }}, }, + battery_charge_outline = { + {lvgl.PART.MAIN, lvgl.Style { + image_recolor_opa = 255, + image_recolor = background_color, + }}, + }, + regulatory_icons = { + {lvgl.PART.MAIN, lvgl.Style { + image_recolor_opa = 255, + image_recolor = text_color, + }}, + }, } return theme_hicon -- cgit v1.2.3