Skip to content

Commit 0801b8a

Browse files
committed
black or hide statusbar
1 parent 54c0ebf commit 0801b8a

File tree

4 files changed

+16
-6
lines changed

4 files changed

+16
-6
lines changed

admin/components/head.admin.php

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,12 @@
99
<html>
1010
<head>
1111
<meta charset="UTF-8" />
12-
<meta name="viewport" content="width=device-width, initial-scale=1.0 user-scalable=no">
12+
<meta name="viewport" content="width=device-width, initial-scale=1.0 user-scalable=no, viewport-fit=cover">
13+
<meta name="mobile-web-app-capable" content="yes" />
1314
<meta name="msapplication-TileColor" content="<?=$config['colors']['primary']?>">
14-
<meta name="theme-color" content="<?=$config['colors']['primary']?>">
15+
<meta name="theme-color" content="#000000">
16+
<meta name="apple-mobile-web-app-capable" content="yes" />
17+
<meta name="apple-mobile-web-app-status-bar-style" content="black-translucent" />
1518

1619
<title><?=$pageTitle ?></title>
1720

assets/sass/components/_stage.scss

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -251,3 +251,9 @@
251251
}
252252
}
253253
}
254+
255+
/* Respect iOS safe areas when viewport-fit=cover hides the status bar */
256+
body,
257+
.stage {
258+
padding-top: env(safe-area-inset-top, 0);
259+
}

resources/img/site.webmanifest

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
"type": "image/png"
1414
}
1515
],
16-
"theme_color": "#ffffff",
16+
"theme_color": "#000000",
1717
"background_color": "#ffffff",
1818
"display": "fullscreen",
1919
"orientation": "landscape"

template/components/main.head.php

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,10 @@
1717
<head>
1818

1919
<meta charset="UTF-8" />
20-
<meta name="viewport" content="width=device-width, initial-scale=1.0">
20+
<meta name="viewport" content="width=device-width, initial-scale=1.0, viewport-fit=cover">
21+
<meta name="mobile-web-app-capable" content="yes" />
2122
<meta name="msapplication-TileColor" content="<?= $config['colors']['primary'] ?>">
22-
<meta name="theme-color" content="<?= $config['colors']['primary'] ?>">
23+
<meta name="theme-color" content="#000000">
2324

2425
<title><?= $pageTitle ?></title>
2526

@@ -32,7 +33,7 @@
3233

3334
<!-- Fullscreen Mode on old iOS-Devices when starting photobooth from homescreen -->
3435
<meta name="apple-mobile-web-app-capable" content="yes" />
35-
<meta name="apple-mobile-web-app-status-bar-style" content="black" />
36+
<meta name="apple-mobile-web-app-status-bar-style" content="black-translucent" />
3637

3738
<link rel="stylesheet" href="<?=$assetService->getUrl('node_modules/normalize.css/normalize.css')?>" />
3839
<link rel="stylesheet" href="<?=$assetService->getUrl('node_modules/@fortawesome/fontawesome-free/css/all.min.css')?>" />

0 commit comments

Comments
 (0)