summaryrefslogtreecommitdiff
path: root/src/ui/themes.cpp
diff options
context:
space:
mode:
authorailurux <ailuruxx@gmail.com>2023-09-02 12:56:52 +1000
committerailurux <ailuruxx@gmail.com>2023-09-02 12:56:52 +1000
commit28452e77e175d8f2a7338ffca436fabdc7d30add (patch)
tree36e97b765aaf4e511ae6d5fffc0ad0f9c885bc4d /src/ui/themes.cpp
parent320fdeb9d8355d3c361d5c6d60de8afc64501af9 (diff)
downloadtangara-fw-28452e77e175d8f2a7338ffca436fabdc7d30add.tar.gz
Some fixes to the top bar widget style
Diffstat (limited to 'src/ui/themes.cpp')
-rw-r--r--src/ui/themes.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/ui/themes.cpp b/src/ui/themes.cpp
index 38bcd9fd..15b3bdb6 100644
--- a/src/ui/themes.cpp
+++ b/src/ui/themes.cpp
@@ -45,6 +45,10 @@ void Theme::Callback(lv_obj_t* obj) {
lv_obj_add_style(obj, &button_style_focused_,
LV_PART_MAIN | LV_STATE_FOCUSED);
}
+
+ if (lv_obj_check_type(obj, &lv_switch_class)) {
+ lv_obj_set_style_border_width(obj, 1, LV_PART_MAIN | LV_STATE_FOCUSED);
+ }
}
void Theme::ApplyStyle(lv_obj_t* obj, Style style) {