124 lines
3.0 KiB
TypeScript
124 lines
3.0 KiB
TypeScript
/** Default theme settings */
|
|
export const themeSettings: App.Theme.ThemeSetting = {
|
|
/*主题模式*/
|
|
/*themeScheme: 'light',*/
|
|
themeScheme: localStorage.getItem('themeScheme') ? localStorage.getItem('themeScheme'):'light',
|
|
|
|
/*灰色模式*/
|
|
/*grayscale: false,*/
|
|
grayscale: localStorage.getItem('grayscale') === 'true',
|
|
|
|
/*色弱模式*/
|
|
/*colourWeakness: false,*/
|
|
colourWeakness: localStorage.getItem('colourWeakness') === 'true',
|
|
|
|
/*应用推荐算法的颜色*/
|
|
recommendColor: false,
|
|
|
|
/*主题颜色*/
|
|
//themeColor: '#0E42D2',
|
|
themeColor: localStorage.getItem('primary') ? localStorage.getItem('primary'):'#ef4444',//默认主色
|
|
otherColor: {
|
|
//info: '#0E42D2',
|
|
info: localStorage.getItem('info') ? localStorage.getItem('info'):'#ef4444',//默认信息色
|
|
success: localStorage.getItem('success') ? localStorage.getItem('success'):'#009A29',
|
|
warning: localStorage.getItem('warning') ? localStorage.getItem('warning'):'#D25F00',
|
|
error: localStorage.getItem('error') ? localStorage.getItem('error'):'#CB2634'
|
|
},
|
|
isInfoFollowPrimary: true,
|
|
resetCacheStrategy: 'close',
|
|
|
|
/*布局模式*/
|
|
layout: {
|
|
/*mode: 'vertical',*/
|
|
/*mode: 'horizontal',*/
|
|
mode: localStorage.getItem('layout-mode') ? localStorage.getItem('layout-mode') : 'vertical',
|
|
scrollMode: 'content',
|
|
reverseHorizontalMix: false
|
|
},
|
|
page: {
|
|
animate: true,
|
|
animateMode: 'fade-slide'
|
|
},
|
|
header: {
|
|
height: 56,
|
|
breadcrumb: {
|
|
visible: true,
|
|
showIcon: true
|
|
},
|
|
multilingual: {
|
|
visible: true
|
|
},
|
|
globalSearch: {
|
|
visible: true
|
|
}
|
|
},
|
|
tab: {
|
|
visible: true,
|
|
cache: true,
|
|
height: 44,
|
|
mode: 'chrome'
|
|
},
|
|
fixedHeaderAndTab: true,
|
|
sider: {
|
|
|
|
/*深色侧边栏*/
|
|
/*inverted: false,*/
|
|
inverted: localStorage.getItem('inverted') === 'true',
|
|
|
|
width: 220,
|
|
collapsedWidth: 64,
|
|
mixWidth: 90,
|
|
mixCollapsedWidth: 64,
|
|
mixChildMenuWidth: 200
|
|
},
|
|
footer: {
|
|
visible: true,
|
|
fixed: false,
|
|
height: 48,
|
|
right: true
|
|
},
|
|
watermark: {
|
|
visible: import.meta.env.VITE_WATERMARK === 'Y',
|
|
text: '全员营销计价',
|
|
enableUserName: true
|
|
},
|
|
table: {
|
|
bordered: true,
|
|
bottomBordered: true,
|
|
singleColumn: false,
|
|
singleLine: true,
|
|
size: 'small',
|
|
striped: false
|
|
},
|
|
tokens: {
|
|
light: {
|
|
colors: {
|
|
container: 'rgb(255, 255, 255)',
|
|
layout: 'rgb(247, 250, 252)',
|
|
inverted: 'rgb(0, 20, 40)',
|
|
'base-text': 'rgb(31, 31, 31)'
|
|
},
|
|
boxShadow: {
|
|
header: '0 1px 2px rgb(0, 21, 41, 0.08)',
|
|
sider: '2px 0 8px 0 rgb(29, 35, 41, 0.05)',
|
|
tab: '0 1px 2px rgb(0, 21, 41, 0.08)'
|
|
}
|
|
},
|
|
dark: {
|
|
colors: {
|
|
container: 'rgb(28, 28, 28)',
|
|
layout: 'rgb(18, 18, 18)',
|
|
'base-text': 'rgb(224, 224, 224)'
|
|
}
|
|
}
|
|
}
|
|
};
|
|
|
|
/**
|
|
* Override theme settings
|
|
*
|
|
* If publish new version, use `overrideThemeSettings` to override certain theme settings
|
|
*/
|
|
export const overrideThemeSettings: Partial<App.Theme.ThemeSetting> = {};
|