launcher: leave some space for notification bar

This commit is contained in:
Thomas Farstrike
2025-05-05 22:10:15 +02:00
parent e2e94b48e3
commit 454a00a89c
2 changed files with 2 additions and 1 deletions
@@ -16,6 +16,7 @@ import lvgl as lv
# Create a container for the grid
cont = lv.obj(appscreen)
cont.set_pos(0, NOTIFICATION_BAR_HEIGHT) # leave some margin for the notification bar
cont.set_size(lv.pct(100), lv.pct(100))
cont.set_style_pad_all(10, 0)
cont.set_flex_flow(lv.FLEX_FLOW.ROW_WRAP)
+1 -1
View File
@@ -41,7 +41,6 @@ COLOR_SLIDER_KNOB=DARKYELLOW
COLOR_SLIDER_INDICATOR=LIGHTPINK
drawer=None
wifi_screen=None
drawer_open=False
@@ -322,6 +321,7 @@ def execute_script(script_source, is_file, is_launcher, is_graphical):
lv.screen_load(newscreen)
script_globals = {
'lv': lv,
'NOTIFICATION_BAR_HEIGHT': NOTIFICATION_BAR_HEIGHT, # for apps that want to leave space for notification bar
'appscreen': newscreen,
'start_app': start_app, # for launcher apps
'parse_manifest': parse_manifest, # for launcher apps