reafctor: Rely only on the database for themes

This commit makes it so that a user's theme will only be pulled from the
database rather than from a weird mix of cookies and the database. This
fixes some issues with themes rendering weirdly.
This commit is contained in:
Zoe
2026-02-24 16:35:40 +00:00
parent ab57af1f23
commit fc5aedcedd
7 changed files with 75 additions and 114 deletions
+1 -2
View File
@@ -1,8 +1,7 @@
<script setup lang="ts">
import SettingsDialog from '~/components/Settings/Dialog.vue';
const { open: sidebarOpen, openSidebar } = useSidebar();
const { colorScheme } = useTheme();
const { colorScheme } = await useUserSettings();
useHead({
htmlAttrs: {