From 28452e77e175d8f2a7338ffca436fabdc7d30add Mon Sep 17 00:00:00 2001 From: ailurux Date: Sat, 2 Sep 2023 12:56:52 +1000 Subject: Some fixes to the top bar widget style --- src/ui/themes.cpp | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/ui/themes.cpp') 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) { -- cgit v1.2.3