功能

主题

运行 /theme(别名 /t)打开带实时预览的主题选择器;使用 /theme <name> 直接切换;或在 ~/.grok/config.toml 中设置:

TOML

[ui]
theme = "tokyonight"

内置主题

主题名称需要 Truecolor
GrokNight(默认)groknight, dark
GrokDaygrokday, light, day
TokyoNighttokyonight, tokyo
RosePineMoonrosepine, rose-pine-moon
OscuraMidnightoscura, oscura-midnight

在不支持 truecolor 的 terminal 上,主题会量化到可用调色板,选择器也会隐藏仅支持 truecolor 的条目。如果颜色显示异常,请参阅 Terminal Support

跟随系统外观

theme = "auto"(别名 "system")设为跟随操作系统的 Light/Dark 设置;更改会在几秒内应用,无需重启。除非覆盖,否则 Dark 映射到 GrokNight,Light 映射到 GrokDay:

TOML

[ui]
theme = "auto"
auto_dark_theme = "tokyonight"
auto_light_theme = "grokday"

如需更紧凑的布局,/compact-mode 会减少 padding 并保存选择。更细致的外观控制(scrollback layout、block styling、animations)位于 ~/.grok/pager.toml