misc: make meta theme color match theme

This commit is contained in:
Xylight committed 2024-03-04 18:55:03 -08:00
1 parent 03be7f61c1
commit 9d8a7f6774
1 file changed
+2 -2
+2 -2
View File
@@ -8,7 +8,7 @@
import Sidebar from '$lib/components/ui/sidebar/Sidebar.svelte'
// @ts-ignore
import { pwaInfo } from 'virtual:pwa-info'
import { inDarkLegacyTheme, legacyTheme } from '$lib/ui/colors.js'
import { colors, inDarkLegacyTheme, legacyTheme } from '$lib/ui/colors.js'
import { userSettings } from '$lib/settings.js'
import { Button, ModalContainer, Spinner, ToastContainer } from 'mono-svelte'
import { onMount } from 'svelte'
@@ -64,7 +64,7 @@
</script>
<svelte:head>
<meta name="theme-color" content={darklegacyTheme ? '#09090b' : '#f8fafc'} />
<meta name="theme-color" content={darklegacyTheme ? $colors?.zinc?.[950] ?? '#09090b' : $colors?.slate?.[50] ?? '#f8fafc'} />
{#if $site}
<title>{$site.site_view.site.name}</title>
{#if LINKED_INSTANCE_URL}