s
This commit is contained in:
parent
e4bad2fae8
commit
54438790ad
1503
pnpm-lock.yaml
1503
pnpm-lock.yaml
File diff suppressed because it is too large
Load Diff
12
src/App.vue
12
src/App.vue
@ -5,8 +5,18 @@ import { useTheme } from '@/hooks/useTheme'
|
||||
import { useLanguage } from '@/hooks/useLanguage'
|
||||
import zhCN from 'ant-design-vue/es/locale/zh_CN';
|
||||
|
||||
const { theme, themeOverrides } = useTheme()
|
||||
const { theme } = useTheme()
|
||||
const { language } = useLanguage()
|
||||
import { GlobalThemeOverrides } from 'naive-ui'
|
||||
const themeOverrides: GlobalThemeOverrides = {
|
||||
common: {
|
||||
primaryColorHover:'#764CF6',
|
||||
primaryColor:'#764CF6'
|
||||
},
|
||||
Button: {
|
||||
textColor: '#764CF6'
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
||||
<template>
|
||||
|
@ -22,7 +22,10 @@ export function useTheme() {
|
||||
const themeOverrides = computed<GlobalThemeOverrides>(() => {
|
||||
if (isDark.value) {
|
||||
return {
|
||||
common: {},
|
||||
common: {
|
||||
primaryColorHover:'#764CF6',
|
||||
primaryColor:'#764CF6'
|
||||
},
|
||||
}
|
||||
}
|
||||
return {}
|
||||
|
Loading…
Reference in New Issue
Block a user