|
70 | 70 | - 注释: #6A8AAF (灰蓝) |
71 | 71 | - **适用**: 白天使用,海洋/清新风格 |
72 | 72 |
|
| 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 | +
|
73 | 86 | ## 快速切换主题 |
74 | 87 |
|
75 | 88 | ### 方法一:使用切换脚本 |
|
85 | 98 |
|
86 | 99 | # 切换到主题4 (海洋浅色) |
87 | 100 | ./switch-theme.sh 4 |
| 101 | +
|
| 102 | +# 切换到主题5 (柔和深色) |
| 103 | +./switch-theme.sh 5 |
88 | 104 | ``` |
89 | 105 |
|
90 | 106 | ### 方法二:手动切换 |
91 | 107 |
|
92 | 108 | #### OpenCode |
93 | | -1. 编辑配置文件: `~/.opencode/settings.json` |
| 109 | +1. 编辑配置文件: `~/.config/opencode/settings.json` |
94 | 110 | 2. 修改 theme 字段: |
95 | 111 | ```json |
96 | 112 | { |
|
101 | 117 | "theme": "ethereal-frost" // 主题3 |
102 | 118 | // 或 |
103 | 119 | "theme": "deep-ocean" // 主题4 |
| 120 | + // 或 |
| 121 | + "theme": "soft-noir" // 主题5 |
104 | 122 | } |
105 | 123 | ``` |
106 | 124 | 3. 重新加载 OpenCode: Command+Shift+P → reload |
|
109 | 127 | 1. 复制对应主题配置: |
110 | 128 | ```bash |
111 | 129 | # 主题1 |
112 | | - cp "主题配置/ghostty/theme1/config" ~/.config/ghostty/config |
| 130 | + cp ghostty/theme1/config ~/.config/ghostty/config |
113 | 131 |
|
114 | 132 | # 主题2 |
115 | | - cp "主题配置/ghostty/theme2/config" ~/.config/ghostty/config |
| 133 | + cp ghostty/theme2/config ~/.config/ghostty/config |
116 | 134 |
|
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 | + ``` |
123 | 144 | 2. 重启 Ghostty 或按 Command+Shift+, 重新加载配置 |
124 | 145 |
|
125 | 146 | #### Windows Terminal (Preview) |
|
165 | 186 |
|
166 | 187 | ## 提示 |
167 | 188 |
|
168 | | -1. 两个工具的主题需要**分别切换**,OpenCode 改 settings.json,Ghostty 换 config 文件 |
169 | | -2. 建议保持两个工具使用相同主题,保持视觉一致性 |
| 189 | +1. 三个工具的主题需要**分别切换**:OpenCode 改 settings.json,Ghostty 换 config 文件,Windows Terminal 改 settings.json 的 schemes + profiles |
| 190 | +2. 建议保持所有工具使用相同主题,保持视觉一致性 |
170 | 191 | 3. 可以随时修改 JSON 文件中的颜色值来自定义主题 |
0 commit comments