You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
feat(tui): new theme + Catppuccin syntax highlighter (#88)
* feat(tui): new theme + Catppuccin syntax highlighter
Refresh the TUI theme and adopt a Catppuccin code-syntax highlighter:
- Accent reharmonized to the brand periwinkle/indigo (#B3B9F4 dark / #0B114E
light); border_accent and the selection tint follow the accent family (the
selection bg is now sourced from a single constant feeding both the token and
the prompt-toolkit styles).
- Code blocks use Catppuccin Mocha (dark UI) / Latte (light UI), adaptive,
hand-built as Pygments styles and rendered foreground-only on the calm
code-block panel (transparent bg). 'pythinker-ansi' and stock Pygments styles
remain opt-ins; the config default is now 'catppuccin-adaptive'.
- Markdown uses terminal-native ANSI for inline code and links (cyan),
blockquotes (green) and ordered-list markers (bright blue), mode-independent.
Also fixes the vendored renderer that stripped blockquote colour and left list
markers unstyled.
- User-sent messages render on a neutral grey block (#333333 / #E0E0E0),
removing the prior blue tint.
Shimmer ramp constants now derive from the activity tokens and the unused
tool_success_bg token is removed.
* fix(tui): satisfy pyright in theme-token tests + add changelog entry
The CI `check` job failed pyright on tests/ui_and_conv/test_tui_theme_tokens.py:
type the `expected` dict keys as ThemeName so the loop var is accepted by
get_tui_tokens, and route markdown_rich_style(...).color.name through a
_color_name helper that asserts the optional Color is present.
Also add the missing `## Unreleased` CHANGELOG bullet for the new TUI theme
+ Catppuccin highlighter, fixing the `changelog` job.
Copy file name to clipboardExpand all lines: CHANGELOG.md
+1Lines changed: 1 addition & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -15,6 +15,7 @@ GitHub Releases page; `0.8.0` is the new starting line.
15
15
16
16
## Unreleased
17
17
18
+
-**Refreshed TUI theme and Catppuccin syntax highlighting.** The interface adopts a brand periwinkle/indigo accent (`#B3B9F4` dark / `#0B114E` light) with a reharmonized selection tint, and code blocks now highlight with Catppuccin Mocha (dark) / Latte (light), adaptive to the active theme — implemented as foreground-only Pygments styles with no new dependency. Markdown inline code and links render terminal-native cyan, blockquotes green, and ordered-list markers bright blue (so they adapt per terminal), and user messages sit on a neutral grey block instead of the prior blue tint.
18
19
-**Homebrew updater no longer no-ops or false-reports success.**`pythinker update` on a Homebrew install now runs `brew update` to refresh the tap before `brew upgrade`, so a stale local tap clone can't pin the old formula and silently no-op ("0.37.0 already installed"). After upgrading it re-checks the installed version via `brew list --versions` and reports a clear failure instead of "Updated successfully!" when the version did not actually advance.
0 commit comments