minor fixes

This commit is contained in:
Gabor Kiss-Vamosi
2020-03-19 09:32:42 +01:00
parent 229463d801
commit 530807eca1
6 changed files with 113 additions and 86 deletions

View File

@@ -89,7 +89,7 @@ lv_obj_t * lv_switch_create(lv_obj_t * par, const lv_obj_t * copy)
if(copy == NULL) {
lv_obj_set_click(sw, true);
lv_obj_add_protect(sw, LV_PROTECT_PRESS_LOST);
lv_obj_set_size(sw, LV_DPI / 2, LV_DPI / 4);
lv_obj_set_size(sw, 4 * LV_DPI / 10, LV_DPI / 4);
lv_bar_set_range(sw, 0, 1);
lv_theme_apply(sw, LV_THEME_SWITCH);