2
0
mirror of https://github.com/acepanel/panel.git synced 2026-02-04 11:27:17 +08:00

feat: 优化默认主题配色

This commit is contained in:
耗子
2024-10-24 03:31:53 +08:00
parent aedde0d433
commit 247000718d
3 changed files with 3 additions and 3 deletions

View File

@@ -1,6 +1,6 @@
function addThemeColorCssVars() {
const key = '__THEME_COLOR__'
const defaultColor = '#66CCFF'
const defaultColor = '#00BFFF'
const themeColor = window.localStorage.getItem(key) || defaultColor
const cssVars = `--primary-color: ${themeColor}`
document.documentElement.style.cssText = cssVars

View File

@@ -14,7 +14,7 @@
"visible": true,
"height": 60
},
"primaryColor": "#66CCFF",
"primaryColor": "#00BFFF",
"otherColor": {
"info": "#2080F0",
"success": "#18A058",

View File

@@ -23,7 +23,7 @@ export function defaultSettings(): Theme.Setting {
}
const header = themeSetting.header || { visible: true, height: 60 }
const tab = themeSetting.tab || { visible: true, height: 50 }
const primaryColor = themeSetting.primaryColor || '#66CCFF'
const primaryColor = themeSetting.primaryColor || '#00BFFF'
const otherColor = themeSetting.otherColor || {
info: '#0099ad',
success: '#52c41a',