mirror of
https://github.com/woodchen-ink/nezha-dash-v1.git
synced 2025-07-18 17:41:56 +08:00
fix: ios pwa color
This commit is contained in:
parent
b291d01466
commit
eb6612e27e
1
.github/workflows/Build.yml
vendored
1
.github/workflows/Build.yml
vendored
@ -40,4 +40,3 @@ jobs:
|
|||||||
run: bun x changelogithub
|
run: bun x changelogithub
|
||||||
env:
|
env:
|
||||||
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}
|
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}
|
||||||
|
|
||||||
|
@ -6,10 +6,7 @@
|
|||||||
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
||||||
<meta name="mobile-web-app-capable" content="yes" />
|
<meta name="mobile-web-app-capable" content="yes" />
|
||||||
<meta name="apple-mobile-web-app-title" content="NEZHA" />
|
<meta name="apple-mobile-web-app-title" content="NEZHA" />
|
||||||
<meta
|
<meta name="apple-mobile-web-app-status-bar-style" content="default" />
|
||||||
name="apple-mobile-web-app-status-bar-style"
|
|
||||||
content="black-translucent"
|
|
||||||
/>
|
|
||||||
<meta name="theme-color" content="#242424" />
|
<meta name="theme-color" content="#242424" />
|
||||||
<title>NEZHA</title>
|
<title>NEZHA</title>
|
||||||
<script>
|
<script>
|
||||||
|
@ -40,7 +40,8 @@ export function ThemeProvider({
|
|||||||
: "light";
|
: "light";
|
||||||
|
|
||||||
root.classList.add(systemTheme);
|
root.classList.add(systemTheme);
|
||||||
const themeColor = systemTheme === "dark" ? "#242424" : "#fafafa";
|
const themeColor =
|
||||||
|
systemTheme === "dark" ? "hsl(30 15% 8%)" : "hsl(0 0% 98%)";
|
||||||
document
|
document
|
||||||
.querySelector('meta[name="theme-color"]')
|
.querySelector('meta[name="theme-color"]')
|
||||||
?.setAttribute("content", themeColor);
|
?.setAttribute("content", themeColor);
|
||||||
@ -48,7 +49,7 @@ export function ThemeProvider({
|
|||||||
}
|
}
|
||||||
|
|
||||||
root.classList.add(theme);
|
root.classList.add(theme);
|
||||||
const themeColor = theme === "dark" ? "#242424" : "#fafafa";
|
const themeColor = theme === "dark" ? "hsl(30 15% 8%)" : "hsl(0 0% 98%)";
|
||||||
document
|
document
|
||||||
.querySelector('meta[name="theme-color"]')
|
.querySelector('meta[name="theme-color"]')
|
||||||
?.setAttribute("content", themeColor);
|
?.setAttribute("content", themeColor);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user