|
|
|
@ -17,6 +17,9 @@ const SIDER_LIGHTEN_BG_COLOR = '--sider-dark-lighten-bg-color'
|
|
|
|
|
*/ |
|
|
|
|
export function updateHeaderBgColor(color?: string) { |
|
|
|
|
const appStore = useAppStoreWithOut() |
|
|
|
|
if (!appStore.getHeaderSetting) |
|
|
|
|
return |
|
|
|
|
|
|
|
|
|
const darkMode = appStore.getDarkMode === ThemeEnum.DARK |
|
|
|
|
if (!color) { |
|
|
|
|
if (darkMode) |
|
|
|
@ -49,6 +52,9 @@ export function updateHeaderBgColor(color?: string) {
|
|
|
|
|
export function updateSidebarBgColor(color?: string) { |
|
|
|
|
const appStore = useAppStoreWithOut() |
|
|
|
|
|
|
|
|
|
if (!appStore.getMenuSetting) |
|
|
|
|
return |
|
|
|
|
|
|
|
|
|
// if (!isHexColor(color)) return;
|
|
|
|
|
const darkMode = appStore.getDarkMode === ThemeEnum.DARK |
|
|
|
|
if (!color) { |
|
|
|
|