Fix settings getter (#240)

This commit is contained in:
Chenlei Hu
2024-07-27 18:22:22 -04:00
committed by GitHub
parent 76be537351
commit 980ed0083d

View File

@@ -13,9 +13,7 @@ import SideBarIcon from './SideBarIcon.vue'
import { useSettingStore } from '@/stores/settingStore'
const previousDarkTheme = ref('dark')
const currentTheme = computed(() =>
useSettingStore().get('Comfy.ColorPalette', 'dark')
)
const currentTheme = computed(() => useSettingStore().get('Comfy.ColorPalette'))
const isDarkMode = computed(() => currentTheme.value !== 'light')
const icon = computed(() => (isDarkMode.value ? 'pi pi-moon' : 'pi pi-sun'))