Skip to content

Commit e65bf68

Browse files
committed
Fix: color status bar safari iOS
1 parent 975873c commit e65bf68

2 files changed

Lines changed: 14 additions & 1 deletion

File tree

App.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,10 @@ const App = () => {
6161
setTheme(getTheme(settings))
6262
}, [settings.theme, settings.themePlayer])
6363

64+
React.useEffect(() => {
65+
if (window) window.document.documentElement.style.backgroundColor = theme.primaryBack
66+
}, [theme])
67+
6468
React.useEffect(() => {
6569
if (window) window.streamFormat = settings.streamFormat
6670
else global.streamFormat = settings.streamFormat

public/index.html

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
<meta name="apple-touch-fullscreen" content="yes">
1414
<meta name="apple-mobile-web-app-title" content="Castafiore">
1515
<meta name="apple-mobile-web-app-status-bar-style" content="black-translucent">
16-
<link rel="apple-touch-icon" sizes="180x180" href="pwa/apple-touch-icon-180.png">
16+
<link rel="apple-touch-icon" sizes="180x180" href="pwa/apple-touch-icon-180.png">
1717
<link rel="manifest" href="manifest.json">
1818
<style>
1919
/**
@@ -37,6 +37,15 @@
3737
position: relative;
3838
}
3939

40+
body {
41+
display: block;
42+
left: 0;
43+
position: fixed;
44+
right: 0;
45+
top: 0;
46+
bottom: 0;
47+
}
48+
4049
#root {
4150
flex-shrink: 0;
4251
flex-basis: auto;

0 commit comments

Comments
 (0)