summaryrefslogtreecommitdiff
path: root/src/ui/themes.cpp
diff options
context:
space:
mode:
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) {