update
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
import type { ITheme } from 'xterm';
|
||||
|
||||
// 默认 xterm 主题
|
||||
// (与 frontend/src/stores/settings.store.ts 中的定义保持一致)
|
||||
// (与 backend/src/config/default-themes.ts 中的定义保持一致)
|
||||
export const defaultXtermTheme: ITheme = {
|
||||
background: '#1e1e1e',
|
||||
foreground: '#d4d4d4',
|
||||
@@ -26,23 +26,34 @@ export const defaultXtermTheme: ITheme = {
|
||||
};
|
||||
|
||||
// 默认 UI 主题 (CSS 变量)
|
||||
// (与 frontend/src/stores/settings.store.ts 中的定义保持一致)
|
||||
// (与 backend/src/config/default-themes.ts 中的定义保持一致)
|
||||
export const defaultUiTheme: Record<string, string> = {
|
||||
'--app-bg-color': '#ffffff',
|
||||
'--text-color': '#333333',
|
||||
'--text-color-secondary': '#666666',
|
||||
'--border-color': '#cccccc',
|
||||
'--link-color': '#333',
|
||||
'--link-hover-color': '#0056b3',
|
||||
'--link-active-color': '#007bff',
|
||||
'--link-color': '#8E44AD', // 现代紫色 (Amethyst 变种)
|
||||
'--link-hover-color': '#B180E0', // 现代紫色 - 悬停 (更亮)
|
||||
'--link-active-color': '#A06CD5', // 现代紫色 - 激活 (基础)
|
||||
'--link-active-bg-color': '#F3EBFB', /* 现代紫色 - 激活背景 (非常浅) */
|
||||
'--nav-item-active-bg-color': 'var(--link-active-bg-color)', /* Added */
|
||||
'--header-bg-color': '#f0f0f0',
|
||||
'--footer-bg-color': '#f0f0f0',
|
||||
'--button-bg-color': '#007bff',
|
||||
'--button-bg-color': '#A06CD5', // 现代紫色 - 激活 (基础)
|
||||
'--button-text-color': '#ffffff',
|
||||
'--button-hover-bg-color': '#0056b3',
|
||||
'--button-hover-bg-color': '#8E44AD', // 现代紫色 - 悬停 (稍暗)
|
||||
// Added new variables
|
||||
'--icon-color': 'var(--text-color-secondary)', // 图标颜色
|
||||
'--icon-hover-color': 'var(--link-hover-color)', // 图标悬停颜色 (自动更新)
|
||||
'--split-line-color': 'var(--border-color)', /* 分割线颜色 */
|
||||
'--split-line-hover-color': 'var(--border-color)', /* 分割线悬停颜色 */
|
||||
'--input-focus-border-color': 'var(--link-active-color)', /* 输入框聚焦边框颜色 (自动更新) */
|
||||
'--input-focus-glow': 'var(--link-active-color)', /* 输入框聚焦光晕值 (自动更新) */
|
||||
'--ssh-tab-active': 'transparent', /* Added SSH Tab Active */
|
||||
'--ssh-tab-background': 'transparent', /* Added SSH Tab Background */
|
||||
'--overlay-bg-color': 'rgba(0, 0, 0, 0.6)', /* Added Overlay Background - 恢复 rgba 以支持透明度 */
|
||||
// End added variables
|
||||
'--font-family-sans-serif': 'sans-serif',
|
||||
'--base-padding': '1rem',
|
||||
'--base-margin': '0.5rem',
|
||||
};
|
||||
|
||||
// 未来可以在这里添加其他默认主题
|
||||
|
||||
Reference in New Issue
Block a user