chore: add theme css support

This commit is contained in:
2026-05-28 22:02:38 +02:00
parent f2e795e2c9
commit 7fa83d6d0a
2 changed files with 20 additions and 0 deletions
+6
View File
@@ -167,6 +167,7 @@
cursorSmoothening.subscribe(async (val) => await config_cursor_smoothening.set(val));
reduceAnimations.subscribe(async (val) => await config_reduce_animations.set(val));
openTabletDriverEnabled.subscribe(async (val) => config_otd_enabled.set(val));
osuInstallationPath.subscribe(async (val) => await config_osu_installation_path.set(val));
discordPresence.subscribe(async (val) => {
config_discord_presence.set(val);
@@ -235,6 +236,11 @@
});
</script>
<svelte:head>
<!-- eslint-disable-next-line svelte/no-at-html-tags -->
{@html `<style>${$active_custom_theme?.cssStyle || ''}</style>`}
</svelte:head>
{#if $customCursor}
<OsuCursor smoothCursor={$cursorSmoothening} />
{/if}