Better theme support

This commit is contained in:
dragongoose
2023-09-25 17:25:42 -04:00
parent 4d2ff16a79
commit bad5529d84
24 changed files with 135 additions and 74 deletions

View File

@ -1,5 +1,5 @@
<script lang="ts">
import { getDefaultSettings, syncUserSettings, setLanguage } from '@/settingsManager'
import { getDefaultSettings, syncUserSettings, setLanguage, themeList } from '@/settingsManager'
export default {
setup() {
@ -14,7 +14,8 @@ export default {
}
return {
settings
settings,
themeList
}
},
methods: {
@ -50,7 +51,7 @@ export default {
</script>
<template>
<div class="mx-auto w-[35rem] max-w-[95vw] p-5 py-3 bg-secondary rounded-md text-white">
<div class="mx-auto w-[35rem] max-w-[95vw] p-5 py-3 bg-secondary rounded-md text-contrast">
<h1 class="font-bold text-3xl">{{ $t("nav.settings") }}</h1>
<hr class="my-2" />
<ul class="w-full space-y-1">