56 lines
1.7 KiB
TypeScript
56 lines
1.7 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',
|
|
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',
|
|
'--link-hover-color': '#B180E0',
|
|
'--link-active-color': '#A06CD5',
|
|
'--link-active-bg-color': '#F3EBFB',
|
|
'--nav-item-active-bg-color': 'var(--link-active-bg-color)',
|
|
'--header-bg-color': '#f0f0f0',
|
|
'--footer-bg-color': '#f0f0f0',
|
|
'--button-bg-color': '#A06CD5',
|
|
'--button-text-color': '#ffffff',
|
|
'--button-hover-bg-color': '#8E44AD',
|
|
'--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)',
|
|
'--overlay-bg-color': 'rgba(0, 0, 0, 0.6)',
|
|
'--font-family-sans-serif': 'sans-serif',
|
|
'--base-padding': '1rem',
|
|
'--base-margin': '0.5rem',
|
|
};
|