We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ab75a04 commit 0f92790Copy full SHA for 0f92790
2 files changed
src/App.vue
@@ -9,6 +9,7 @@ import { useScrollbarVisibility } from '@/composables/useScrollbarVisibility';
9
import { onMounted } from 'vue';
10
const uiStore = useUiStore();
11
onMounted(() => {
12
+ uiStore.initTheme();
13
useScrollbarVisibility();
14
});
15
</script>
src/stores/uiStore.ts
@@ -8,7 +8,7 @@ export const PANEL_MAX_WIDTH = 600;
8
function uiStore() {
const leftPanelWidth = ref(232);
// 深色模式
- const isDarkMode = ref(false);
+ const isDarkMode = ref(detectSystemDark());
const followSystem = ref(true);
function detectSystemDark() {
0 commit comments