60 lines
2.4 KiB
TypeScript
60 lines
2.4 KiB
TypeScript
import type { ITheme } from 'xterm';
|
|
|
|
// 默认 xterm 主题
|
|
// (与 backend/src/config/default-themes.ts 中的定义保持一致)
|
|
export const defaultXtermTheme: ITheme = {
|
|
background: '#1e1e1e',
|
|
foreground: '#d4d4d4',
|
|
cursor: '#d4d4d4',
|
|
selectionBackground: '#264f78', // 使用 selectionBackground
|
|
black: '#000000',
|
|
red: '#cd3131',
|
|
green: '#0dbc79',
|
|
yellow: '#e5e510',
|
|
blue: '#2472c8',
|
|
magenta: '#bc3fbc',
|
|
cyan: '#11a8cd',
|
|
white: '#e5e5e5',
|
|
brightBlack: '#666666',
|
|
brightRed: '#f14c4c',
|
|
brightGreen: '#23d18b',
|
|
brightYellow: '#f5f543',
|
|
brightBlue: '#3b8eea',
|
|
brightMagenta: '#d670d6',
|
|
brightCyan: '#29b8db',
|
|
brightWhite: '#e5e5e5'
|
|
};
|
|
|
|
// 默认 UI 主题 (CSS 变量)
|
|
// (与 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': '#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': '#A06CD5', // 现代紫色 - 激活 (基础)
|
|
'--button-text-color': '#ffffff',
|
|
'--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',
|
|
};
|