Added dark theme and white theme switching

This commit is contained in:
2025-06-09 02:29:15 +08:00
parent 7f97b4a937
commit aff08f4d3d
23 changed files with 630 additions and 218 deletions

View File

@@ -1,15 +1,17 @@
<script setup lang="ts">
import { onMounted } from 'vue';
import { useConfigStore } from '@/stores/configStore';
import { useSystemTheme } from '@/composables/useSystemTheme';
import WindowTitleBar from '@/components/titlebar/WindowTitleBar.vue';
const configStore = useConfigStore();
const { setTheme } = useSystemTheme();
// 应用启动时加载配置
onMounted(async () => {
await configStore.initConfig();
await configStore.initializeLanguage();
setTheme(configStore.config.appearance.systemTheme);
});
</script>