mirror of
https://seed.radicle.dev/rad:z4V1sjrXqjvFdnCUbxPFqd5p4DtH5.git
synced 2026-11-21 06:10:44 +08:00
Load theme in top-level App.svelte
Previously the theme was only loaded when the <ThemeSettings> component was loaded in the footer. This stopped working since we removed the layout around the loading spinner.
This commit is contained in:
@@ -5,6 +5,8 @@
|
||||
import * as httpd from "@app/lib/httpd";
|
||||
import { unreachable } from "@app/lib/utils";
|
||||
|
||||
import { codeFont, theme } from "@app/lib/appearance";
|
||||
|
||||
import FullscreenModalPortal from "./App/FullscreenModalPortal.svelte";
|
||||
import Hotkeys from "./App/Hotkeys.svelte";
|
||||
import LoadingBar from "./App/LoadingBar.svelte";
|
||||
@@ -37,6 +39,9 @@
|
||||
|
||||
plausible.enableAutoPageviews();
|
||||
}
|
||||
|
||||
$: document.documentElement.setAttribute("data-codefont", $codeFont);
|
||||
$: document.documentElement.setAttribute("data-theme", $theme);
|
||||
</script>
|
||||
|
||||
<style>
|
||||
|
||||
Reference in New Issue
Block a user