mirror of
https://github.com/acepanel/panel.git
synced 2026-02-04 11:27:17 +08:00
feat: 优化默认主题配色
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -14,7 +14,7 @@
|
||||
"visible": true,
|
||||
"height": 60
|
||||
},
|
||||
"primaryColor": "#66CCFF",
|
||||
"primaryColor": "#00BFFF",
|
||||
"otherColor": {
|
||||
"info": "#2080F0",
|
||||
"success": "#18A058",
|
||||
|
||||
@@ -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',
|
||||
|
||||
Reference in New Issue
Block a user