mirror of
https://github.com/wukko/cobalt.git
synced 2025-04-29 22:14:26 +02:00
web/layout: adaptive status bar colors for desktop
mostly used by safari
This commit is contained in:
parent
2fce88af2f
commit
78f23da0a5
@ -42,6 +42,12 @@ export default derived(
|
||||
) as Readable<Exclude<Theme, "auto">>
|
||||
|
||||
export const statusBarColors = {
|
||||
"dark": "#000000",
|
||||
"light": "#ffffff"
|
||||
mobile: {
|
||||
dark: "#000000",
|
||||
light: "#ffffff"
|
||||
},
|
||||
desktop: {
|
||||
dark: "#131313",
|
||||
light: "#f4f4f4"
|
||||
}
|
||||
}
|
||||
|
@ -67,7 +67,15 @@
|
||||
{/if}
|
||||
|
||||
{#if device.is.mobile}
|
||||
<meta name="theme-color" content={statusBarColors[$currentTheme]} />
|
||||
<meta
|
||||
name="theme-color"
|
||||
content={statusBarColors.mobile[$currentTheme]}
|
||||
/>
|
||||
{:else}
|
||||
<meta
|
||||
name="theme-color"
|
||||
content={statusBarColors.desktop[$currentTheme]}
|
||||
/>
|
||||
{/if}
|
||||
|
||||
{#if plausibleLoaded || (browser && env.PLAUSIBLE_ENABLED && !$settings.privacy.disableAnalytics)}
|
||||
|
Loading…
x
Reference in New Issue
Block a user