Skip to content

Commit

Permalink
fix(theme) fix the switch style in the default theme
Browse files Browse the repository at this point in the history
LVGL didn't see that the styles were changed in checked state therefore the switch wasn't invalidated.
  • Loading branch information
kisvegabor committed Jun 7, 2021
1 parent 8ab8064 commit 0c0dc8e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/extra/themes/default/lv_theme_default.c
Original file line number Diff line number Diff line change
@@ -772,7 +772,7 @@ static void theme_apply(lv_theme_t * th, lv_obj_t * obj)
lv_obj_add_style(obj, &styles->circle, 0);
lv_obj_add_style(obj, &styles->disabled, LV_STATE_DISABLED);
lv_obj_add_style(obj, &styles->outline_primary, LV_STATE_FOCUS_KEY);
lv_obj_add_style(obj, &styles->bg_color_primary, LV_PART_INDICATOR);
lv_obj_add_style(obj, &styles->bg_color_primary, LV_PART_INDICATOR | LV_STATE_CHECKED);
lv_obj_add_style(obj, &styles->circle, LV_PART_INDICATOR);
lv_obj_add_style(obj, &styles->disabled, LV_PART_INDICATOR | LV_STATE_DISABLED);
lv_obj_add_style(obj, &styles->knob, LV_PART_KNOB);

0 comments on commit 0c0dc8e

Please sign in to comment.