From b58edce0d0e0e9476b02cc1086cfeb3b9aefc015 Mon Sep 17 00:00:00 2001 From: Gabor Kiss-Vamosi Date: Sat, 14 Mar 2020 00:03:18 +0100 Subject: [PATCH] theme material: add padding around page's scrollable --- src/lv_themes/lv_theme_material.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/lv_themes/lv_theme_material.c b/src/lv_themes/lv_theme_material.c index 943479797..0b819eb2a 100644 --- a/src/lv_themes/lv_theme_material.c +++ b/src/lv_themes/lv_theme_material.c @@ -254,6 +254,10 @@ static void basic_init(void) lv_style_set_transition_delay(&btn, LV_STATE_PRESSED, 0); 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); }