feat: 后台语言包合并默认中文、日夜主题切换、官方侧栏收缩、追溯码分组与批量

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
Nixevol
2026-06-28 18:37:57 +08:00
co-authored by Cursor
parent 6578007c9e
commit b5170fe84b
21 changed files with 873 additions and 666 deletions
+11 -36
View File
@@ -1,49 +1,24 @@
import type { GlobalThemeOverrides } from 'naive-ui';
// 商务深蓝主色 + 统一设计令牌
// 清凉主色(青绿色系),其余沿用 Naive 官方主题,保证日间/夜间所有控件覆盖。
export const BRAND = {
primary: '#1f3864',
primaryHover: '#2e5496',
primaryPressed: '#162a4d',
primarySuppl: '#2e5496',
primary: '#13a8a8',
hover: '#1fbcbc',
pressed: '#0e8c8c',
gradientFrom: '#0f8f8f',
gradientTo: '#1bb6b6',
radius: '8px',
};
export const themeOverrides: GlobalThemeOverrides = {
common: {
primaryColor: BRAND.primary,
primaryColorHover: BRAND.primaryHover,
primaryColorPressed: BRAND.primaryPressed,
primaryColorSuppl: BRAND.primarySuppl,
infoColor: BRAND.primaryHover,
primaryColorHover: BRAND.hover,
primaryColorPressed: BRAND.pressed,
primaryColorSuppl: BRAND.hover,
infoColor: BRAND.primary,
borderRadius: BRAND.radius,
borderRadiusSmall: '6px',
fontSize: '14px',
fontWeightStrong: '600',
},
Card: {
borderRadius: '12px',
},
Button: {
borderRadiusMedium: BRAND.radius,
},
DataTable: {
thColor: '#f4f7fc',
thTextColor: '#1f2937',
borderRadius: BRAND.radius,
},
Layout: {
siderColor: '#1f2a44',
},
Menu: {
itemTextColorInverted: 'rgba(255,255,255,0.82)',
itemIconColorInverted: 'rgba(255,255,255,0.82)',
itemTextColorHoverInverted: '#ffffff',
itemIconColorHoverInverted: '#ffffff',
itemColorActiveInverted: BRAND.primaryHover,
itemColorActiveHoverInverted: BRAND.primaryHover,
itemTextColorActiveInverted: '#ffffff',
itemIconColorActiveInverted: '#ffffff',
itemTextColorChildActiveInverted: '#ffffff',
},
Card: { borderRadius: '12px' },
};