diff options
| author | jacqueline <me@jacqueline.id.au> | 2023-07-11 17:28:56 +1000 |
|---|---|---|
| committer | jacqueline <me@jacqueline.id.au> | 2023-07-11 17:28:56 +1000 |
| commit | ae076936aead69ce5ed91ee6cfb05a264f50e1ae (patch) | |
| tree | 35a5dadc623cabafff5a89732a412bcd1e751d07 /src/ui/themes.cpp | |
| parent | 6d29b9f007447bfc71dc1d38d295f80ca8cc0ba4 (diff) | |
| download | tangara-fw-ae076936aead69ce5ed91ee6cfb05a264f50e1ae.tar.gz | |
Fix browser view jank
Diffstat (limited to 'src/ui/themes.cpp')
| -rw-r--r-- | src/ui/themes.cpp | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/src/ui/themes.cpp b/src/ui/themes.cpp index 6ae59365..54a41607 100644 --- a/src/ui/themes.cpp +++ b/src/ui/themes.cpp @@ -1,4 +1,5 @@ #include "themes.hpp" +#include "core/lv_obj.h" namespace ui { namespace themes { @@ -29,9 +30,10 @@ void Theme::Apply(void) { } void Theme::Callback(lv_obj_t* obj) { - if (lv_obj_check_type(obj, &lv_btn_class) || lv_obj_check_type(obj, &lv_list_btn_class)) { - lv_obj_add_style(obj, &button_style_, 0); + if (lv_obj_check_type(obj, &lv_btn_class) || + lv_obj_check_type(obj, &lv_list_btn_class)) { + lv_obj_add_style(obj, &button_style_, LV_PART_MAIN | LV_STATE_FOCUSED); } } } // namespace themes -} // namespace ui
\ No newline at end of file +} // namespace ui |
