Skip to content

Commit e6aad78

Browse files
committed
fix: 对齐真实 WT Preview 配置,补全 README theme5 文档
1 parent 1869c99 commit e6aad78

2 files changed

Lines changed: 36 additions & 13 deletions

File tree

README.md

Lines changed: 32 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,19 @@
7070
- 注释: #6A8AAF (灰蓝)
7171
- **适用**: 白天使用,海洋/清新风格
7272
73+
### Theme 5: Soft Noir (柔和深色主题)
74+
- **OpenCode**: `soft-noir.json`
75+
- **Ghostty**: `theme5/config`
76+
- **特点**: 中灰紫色背景(#4A4A5A),介于深色与浅色之间的平衡色调,温暖柔和
77+
- **配色**:
78+
- 背景: #4A4A5A (灰紫)
79+
- 主文字: #F0F0F5 (柔白)
80+
- 关键字/强调: #B89CC8 (淡紫)
81+
- 函数/链接: #5B6B8C (蓝灰)
82+
- 字符串: #5A9A6A (柔绿)
83+
- 注释: #7D7D8D (灰)
84+
- **适用**: 全天使用,护眼且不沉闷
85+
7386
## 快速切换主题
7487
7588
### 方法一:使用切换脚本
@@ -85,12 +98,15 @@
8598
8699
# 切换到主题4 (海洋浅色)
87100
./switch-theme.sh 4
101+
102+
# 切换到主题5 (柔和深色)
103+
./switch-theme.sh 5
88104
```
89105

90106
### 方法二:手动切换
91107

92108
#### OpenCode
93-
1. 编辑配置文件: `~/.opencode/settings.json`
109+
1. 编辑配置文件: `~/.config/opencode/settings.json`
94110
2. 修改 theme 字段:
95111
```json
96112
{
@@ -101,6 +117,8 @@
101117
"theme": "ethereal-frost" // 主题3
102118
// 或
103119
"theme": "deep-ocean" // 主题4
120+
// 或
121+
"theme": "soft-noir" // 主题5
104122
}
105123
```
106124
3. 重新加载 OpenCode: Command+Shift+P → reload
@@ -109,17 +127,20 @@
109127
1. 复制对应主题配置:
110128
```bash
111129
# 主题1
112-
cp "主题配置/ghostty/theme1/config" ~/.config/ghostty/config
130+
cp ghostty/theme1/config ~/.config/ghostty/config
113131

114132
# 主题2
115-
cp "主题配置/ghostty/theme2/config" ~/.config/ghostty/config
133+
cp ghostty/theme2/config ~/.config/ghostty/config
116134

117-
# 主题3
118-
cp "主题配置/ghostty/theme3/config" ~/.config/ghostty/config
119-
120-
# 主题4
121-
cp "主题配置/ghostty/theme4/config" ~/.config/ghostty/config
122-
```
135+
# 主题3
136+
cp ghostty/theme3/config ~/.config/ghostty/config
137+
138+
# 主题4
139+
cp ghostty/theme4/config ~/.config/ghostty/config
140+
141+
# 主题5
142+
cp ghostty/theme5/config ~/.config/ghostty/config
143+
```
123144
2. 重启 Ghostty 或按 Command+Shift+, 重新加载配置
124145

125146
#### Windows Terminal (Preview)
@@ -165,6 +186,6 @@
165186

166187
## 提示
167188

168-
1. 两个工具的主题需要**分别切换**OpenCode 改 settings.json,Ghostty 换 config 文件
169-
2. 建议保持两个工具使用相同主题,保持视觉一致性
189+
1. 三个工具的主题需要**分别切换**OpenCode 改 settings.json,Ghostty 换 config 文件,Windows Terminal 改 settings.json 的 schemes + profiles
190+
2. 建议保持所有工具使用相同主题,保持视觉一致性
170191
3. 可以随时修改 JSON 文件中的颜色值来自定义主题

windows-terminal/ghostty-profile.jsonc

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,11 +9,13 @@
99
"colorScheme": "Catppuccin Mocha",
1010
"font":
1111
{
12-
"face": "MapleMono NF CN"
12+
"face": "Maple Mono NF CN"
1313
},
14-
"opacity": 88,
14+
"icon": "\ud83d\udc7b",
15+
"opacity": 76,
1516
"padding": "0",
1617
"scrollbarState": "hidden",
18+
"experimental.retroTerminalEffect": false,
1719
"useAcrylic": false,
1820
"startingDirectory": "%USERPROFILE%"
1921
}

0 commit comments

Comments
 (0)