优化 精简主题系统,移除废弃的Xcode和Solarized Dark主题

This commit is contained in:
2026-04-18 23:03:16 +08:00
parent 46e128e8ba
commit fa255f78b4
6 changed files with 5 additions and 13 deletions

View File

@@ -97,7 +97,7 @@ npm run test:run
### 主题系统 ### 主题系统
支持种主题:`Light` (Xcode) / `Dark` / `Solarized Dark` 支持种主题:`Light` (浅色) / `Dark` (深色)
CSS 变量定义在 `src/styles/global.less`,包括: CSS 变量定义在 `src/styles/global.less`,包括:
- `--bg-primary/secondary/elevated` - 背景层级 - `--bg-primary/secondary/elevated` - 背景层级

View File

@@ -9,7 +9,7 @@
- 📝 **API 配置管理** - 支持多环境配置文件切换、创建、编辑、复制和删除 - 📝 **API 配置管理** - 支持多环境配置文件切换、创建、编辑、复制和删除
- 🖥️ **MCP 服务器管理** - 便捷的 Model Context Protocol 服务器配置界面 - 🖥️ **MCP 服务器管理** - 便捷的 Model Context Protocol 服务器配置界面
- 🎨 **Windows 11 设计风格** - 采用 Fluent Design 设计规范 - 🎨 **Windows 11 设计风格** - 采用 Fluent Design 设计规范
- 🌈 **多主题支持** - Light / Dark / Solarized Dark 三种主题 - 🌈 **多主题支持** - Light / Dark 种主题
- 🌍 **国际化** - 支持简体中文、English、日語 - 🌍 **国际化** - 支持简体中文、English、日語
- 💧 **亚克力效果** - 可调节透明度的现代视觉效果 - 💧 **亚克力效果** - 可调节透明度的现代视觉效果
- 📦 **系统托盘** - 最小化到托盘,快速切换 API 配置 - 📦 **系统托盘** - 最小化到托盘,快速切换 API 配置

View File

@@ -310,7 +310,6 @@ const serverCount = computed(() => (settings.value.mcpServers ? Object.keys(sett
const themeClass = computed(() => { const themeClass = computed(() => {
const theme = settings.value.uiTheme const theme = settings.value.uiTheme
if (theme === 'Dark') return 'dark' if (theme === 'Dark') return 'dark'
if (theme === 'Solarized Dark') return 'solarized-dark'
return '' return ''
}) })
@@ -477,7 +476,6 @@ watch(
if (cls) { if (cls) {
document.body.classList.add(cls) document.body.classList.add(cls)
if (cls === 'dark') document.body.classList.remove('solarized-dark') if (cls === 'dark') document.body.classList.remove('solarized-dark')
else if (cls === 'solarized-dark') document.body.classList.remove('dark')
} else { } else {
document.body.classList.remove('dark', 'solarized-dark') document.body.classList.remove('dark', 'solarized-dark')
} }

View File

@@ -32,10 +32,8 @@ export default {
acrylicMax: 'Transparent' acrylicMax: 'Transparent'
}, },
theme: { theme: {
xcode: 'Xcode',
dark: 'Dark', dark: 'Dark',
light: 'Light', light: 'Light'
solarizedDark: 'Solarized Dark'
}, },
api: { api: {
title: 'API Configuration', title: 'API Configuration',

View File

@@ -32,10 +32,8 @@ export default {
acrylicMax: '透明' acrylicMax: '透明'
}, },
theme: { theme: {
xcode: 'Xcode',
dark: '深色', dark: '深色',
light: '浅色', light: '浅色'
solarizedDark: 'Solarized Dark'
}, },
api: { api: {
title: 'API 配置', title: 'API 配置',

View File

@@ -32,10 +32,8 @@ export default {
acrylicMax: '透明' acrylicMax: '透明'
}, },
theme: { theme: {
xcode: 'Xcode',
dark: 'ダーク', dark: 'ダーク',
light: 'ライト', light: 'ライト'
solarizedDark: 'Solarized Dark'
}, },
api: { api: {
title: 'API 設定', title: 'API 設定',