update
This commit is contained in:
@@ -6,7 +6,7 @@ export const defaultXtermTheme: ITheme = {
|
||||
background: '#1e1e1e',
|
||||
foreground: '#d4d4d4',
|
||||
cursor: '#d4d4d4',
|
||||
selectionBackground: '#264f78', // 使用 selectionBackground
|
||||
selectionBackground: '#264f78',
|
||||
black: '#000000',
|
||||
red: '#cd3131',
|
||||
green: '#0dbc79',
|
||||
@@ -32,25 +32,23 @@ export const defaultUiTheme: Record<string, string> = {
|
||||
'--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 */
|
||||
'--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-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)', /* 输入框聚焦光晕值 (自动更新) */
|
||||
'--overlay-bg-color': 'rgba(0, 0, 0, 0.6)', /* Added Overlay Background - 恢复 rgba 以支持透明度 */
|
||||
// End added variables
|
||||
'--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',
|
||||
|
||||
@@ -1,10 +1,7 @@
|
||||
// Generated by scripts/generate-iterm-themes.js
|
||||
// Source: https://github.com/mbadolato/iTerm2-Color-Schemes
|
||||
// IMPORTANT: Add the 'default' theme manually to this file if needed.
|
||||
import type { ITheme } from 'xterm';
|
||||
|
||||
import type { TerminalTheme } from '../types/terminal-theme.types';
|
||||
|
||||
// 定义预设主题数组的类型,确保包含 preset_key
|
||||
|
||||
type PresetThemeDefinition = Omit<TerminalTheme, '_id' | 'createdAt' | 'updatedAt'> & { preset_key: string };
|
||||
|
||||
export const presetTerminalThemes: PresetThemeDefinition[] = [
|
||||
|
||||
Reference in New Issue
Block a user