theme material: add padding around page's scrollable
This commit is contained in:
@@ -254,6 +254,10 @@ static void basic_init(void)
|
|||||||
lv_style_set_transition_delay(&btn, LV_STATE_PRESSED, 0);
|
lv_style_set_transition_delay(&btn, LV_STATE_PRESSED, 0);
|
||||||
|
|
||||||
lv_style_init(&pad);
|
lv_style_init(&pad);
|
||||||
|
lv_style_set_pad_top(&pad, LV_STATE_DEFAULT, LV_DPI / 20);
|
||||||
|
lv_style_set_pad_bottom(&pad, LV_STATE_DEFAULT, LV_DPI / 20);
|
||||||
|
lv_style_set_pad_left(&pad, LV_STATE_DEFAULT, LV_DPI / 20);
|
||||||
|
lv_style_set_pad_right(&pad, LV_STATE_DEFAULT, LV_DPI / 20);
|
||||||
lv_style_set_pad_inner(&pad, LV_STATE_DEFAULT, LV_DPI / 10);
|
lv_style_set_pad_inner(&pad, LV_STATE_DEFAULT, LV_DPI / 10);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user