diff options
| author | Ogulcan Celik <ogulcancelik@gmail.com> | 2026-08-05 03:41:38 +0300 |
|---|---|---|
| committer | Ogulcan Celik <ogulcancelik@gmail.com> | 2026-08-05 04:07:11 +0300 |
| commit | add6c14f1ee244502bd1a9599f2cd08320f935b7 (patch) | |
| tree | d02b35da75a6a1ab9e37cc699c3db877cf84d884 /docs | |
| parent | 1f1e434268ad6e8102fdac6d5996e3f190138a28 (diff) | |
feat(theme): add optional sidebar background
Diffstat (limited to 'docs')
| -rw-r--r-- | docs/next/CHANGELOG.md | 1 | ||||
| -rw-r--r-- | docs/next/website/src/content/docs/configuration.mdx | 3 | ||||
| -rw-r--r-- | docs/next/website/src/content/docs/ja/configuration.mdx | 3 | ||||
| -rw-r--r-- | docs/next/website/src/content/docs/zh-cn/configuration.mdx | 3 | ||||
| -rw-r--r-- | docs/next/website/src/data/config-reference.json | 6 |
5 files changed, 16 insertions, 0 deletions
diff --git a/docs/next/CHANGELOG.md b/docs/next/CHANGELOG.md index 45216433..5ec122d5 100644 --- a/docs/next/CHANGELOG.md +++ b/docs/next/CHANGELOG.md @@ -3,6 +3,7 @@ ## Unreleased ### Added +- `theme.custom.sidebar_bg` can now give the desktop sidebar its own background without changing built-in theme defaults. - Settings and `ui.status_indicators = "symbols"` can now use distinct static shapes for blocked, working, done, idle, and unknown agent states. (#2260) - The plugin marketplace now discovers valid manifests at repository roots and subdirectories, groups multiple plugins under each repository, and publishes their versions and exact default-branch commits. diff --git a/docs/next/website/src/content/docs/configuration.mdx b/docs/next/website/src/content/docs/configuration.mdx index 2aa445e0..e0c41c28 100644 --- a/docs/next/website/src/content/docs/configuration.mdx +++ b/docs/next/website/src/content/docs/configuration.mdx @@ -242,6 +242,7 @@ You can override individual colors: ```toml [theme.custom] +sidebar_bg = "#181825" panel_bg = "reset" accent = "#a6e3a1" green = "#a6e3a1" @@ -250,6 +251,8 @@ red = "#f38ba8" yellow = "#f9e2af" ``` +`sidebar_bg` optionally gives the desktop sidebar its own background. When omitted, the sidebar keeps the host terminal background. + Color values accept hex, named colors, `rgb(r,g,b)`, or reset aliases like `reset`, `default`, `none`, and `transparent`. ## UI and sidebar diff --git a/docs/next/website/src/content/docs/ja/configuration.mdx b/docs/next/website/src/content/docs/ja/configuration.mdx index 3069ebef..acc958fb 100644 --- a/docs/next/website/src/content/docs/ja/configuration.mdx +++ b/docs/next/website/src/content/docs/ja/configuration.mdx @@ -238,6 +238,7 @@ dark_name = "catppuccin" ```toml [theme.custom] +sidebar_bg = "#181825" panel_bg = "reset" accent = "#a6e3a1" green = "#a6e3a1" @@ -246,6 +247,8 @@ red = "#f38ba8" yellow = "#f9e2af" ``` +`sidebar_bg` を使うと、デスクトップのサイドバーだけに背景色を設定できます。省略した場合、サイドバーはホストターミナルの背景を使います。 + 色の値には、hex、名前付きの色、`rgb(r,g,b)`、または `reset`、`default`、`none`、`transparent` のようなリセットエイリアスが使えます。 ## UI とサイドバー diff --git a/docs/next/website/src/content/docs/zh-cn/configuration.mdx b/docs/next/website/src/content/docs/zh-cn/configuration.mdx index 257cb127..2247dff8 100644 --- a/docs/next/website/src/content/docs/zh-cn/configuration.mdx +++ b/docs/next/website/src/content/docs/zh-cn/configuration.mdx @@ -238,6 +238,7 @@ dark_name = "catppuccin" ```toml [theme.custom] +sidebar_bg = "#181825" panel_bg = "reset" accent = "#a6e3a1" green = "#a6e3a1" @@ -246,6 +247,8 @@ red = "#f38ba8" yellow = "#f9e2af" ``` +`sidebar_bg` 可单独设置桌面侧边栏的背景色。省略时,侧边栏继续使用宿主终端背景。 + 颜色值支持十六进制、命名颜色、`rgb(r,g,b)`,以及 `reset`、`default`、`none`、`transparent` 等重置别名。 ## UI 与侧边栏 diff --git a/docs/next/website/src/data/config-reference.json b/docs/next/website/src/data/config-reference.json index 8cd6f0a1..e7a0539b 100644 --- a/docs/next/website/src/data/config-reference.json +++ b/docs/next/website/src/data/config-reference.json @@ -53,6 +53,12 @@ "description": "Override the panel_bg color token on top of the base theme. Accepts hex, named colors, rgb(r,g,b), or reset aliases." }, { + "key": "theme.custom.sidebar_bg", + "type": "color", + "default": "unset", + "description": "Set the desktop sidebar background without changing other panel surfaces. Accepts hex, named colors, rgb(r,g,b), or reset aliases." + }, + { "key": "theme.custom.surface0", "type": "color", "default": "unset", |
