Skip to content

Commit 1ad0339

Browse files
authored
style(tui): grey out dark-theme borders and input rules (#152)
1 parent 919b844 commit 1ad0339

4 files changed

Lines changed: 7 additions & 5 deletions

File tree

CHANGELOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,8 @@ GitHub Releases page; `0.8.0` is the new starting line.
1515

1616
## Unreleased
1717

18+
- **Softer TUI chrome in the dark theme.** Panel borders (welcome banner, menus) and the input-area
19+
rules now render in a mid grey (`#8a8d91`) instead of near-white, for a less glaring look.
1820
- **Stop-time memory extraction can now be enabled explicitly.** Added an opt-in
1921
`memory.harvest_on_stop` setting that stages safe assistant decisions, blockers, evidence, and
2022
next steps into the existing scratchpad recall flow at turn end without writing directly to

src/pythinker_code/ui/theme.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -166,7 +166,7 @@ def _task_browser_style_light() -> PTKStyle:
166166
# reads as a single line of text rather than a chrome panel.
167167
"compact-input": "",
168168
"compact-input.prompt": "fg:#F4F4F5 bold",
169-
"compact-input.frame": "fg:#e8ebed",
169+
"compact-input.frame": "fg:#8a8d91",
170170
# Muted level word in the top-border effort label (the dot carries the color).
171171
"compact-input.effort": "fg:#A3A3A3",
172172
"running-prompt-placeholder": "fg:#A3A3A3 italic",
@@ -610,7 +610,7 @@ class TuiTokens:
610610

611611
_TUI_TOKENS_DARK = TuiTokens(
612612
accent="#B3B9F4",
613-
border="#e8ebed",
613+
border="#8a8d91",
614614
border_accent="#7C88DE",
615615
border_muted="#b8bcc0",
616616
info="#AFE3F1",

tests/ui_and_conv/test_shell_panel.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@ def test_brand_panel_is_rounded_and_uses_border_token():
88
set_active_theme("dark")
99
p = brand_panel("hello", title="Demo")
1010
assert p.box is box.ROUNDED
11-
# border style resolves to the light grey border token
12-
assert "#e8ebed" in str(p.border_style).lower()
11+
# border style resolves to the mid grey border token
12+
assert "#8a8d91" in str(p.border_style).lower()
1313

1414

1515
def test_brand_panel_active_uses_accent_border():

tests/ui_and_conv/test_tui_theme_tokens.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ def test_dark_tokens_have_brand_values():
4242
t = get_tui_tokens()
4343
assert t.accent == "#B3B9F4" # periwinkle brand accent (≈ Catppuccin Mocha lavender)
4444
assert t.border_accent == "#7C88DE" # accent-family chrome (active borders)
45-
assert t.border == "#e8ebed" # light grey
45+
assert t.border == "#8a8d91" # mid grey
4646
assert t.info == "#AFE3F1" # cyan (unchanged; markdown code/links use ANSI cyan)
4747
assert t.success == "#7BC97F"
4848
assert t.error == "#EF5E62"

0 commit comments

Comments
 (0)