diff options
| author | ailurux <ailuruxx@gmail.com> | 2023-09-02 12:56:52 +1000 |
|---|---|---|
| committer | ailurux <ailuruxx@gmail.com> | 2023-09-02 12:56:52 +1000 |
| commit | 28452e77e175d8f2a7338ffca436fabdc7d30add (patch) | |
| tree | 36e97b765aaf4e511ae6d5fffc0ad0f9c885bc4d /src/ui/themes.cpp | |
| parent | 320fdeb9d8355d3c361d5c6d60de8afc64501af9 (diff) | |
| download | tangara-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.cpp | 4 |
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) { |
