material theme minor improvements

This commit is contained in:
Gabor Kiss-Vamosi
2020-05-08 13:04:28 +02:00
parent 2500c65506
commit a760baa869
2 changed files with 9 additions and 9 deletions

View File

@@ -90,7 +90,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_DPX(70), LV_DPX(40));
lv_obj_set_size(sw, LV_DPX(60), LV_DPX(35));
lv_bar_set_range(sw, 0, 1);
lv_theme_apply(sw, LV_THEME_SWITCH);