Skip to content

Preserve control backgrounds in focus tints - #92

Merged
thunderballfists merged 1 commit into
mainfrom
fix/preserve-focus-colors
Sep 30, 2026
Merged

thunderballfists merged 1 commit into
mainfrom
fix/preserve-focus-colors

Conversation

@thunderballfists

Copy link
Copy Markdown
Owner

Focused primary and error buttons lost their variant colors because TextUI set a translucent background instead of blending a tint over the native background. Both the default focus cue and compact editable-control cue now use background-tint, preserving native and author backgrounds. The existing 15% and 25% strengths are unchanged; applications can adjust or disable them in TCSS.

Adds regression coverage for variant buttons and author backgrounds across runtime compact-mode toggles, documents the override, and updates reviewed macOS/Linux showcase baselines. Snapshot text and geometry are unchanged.

Validation:

  • Full headless suite: 396 passed; styling suite: 24 passed. Four new regressions failed before the fix.
  • Visual snapshot comparison: 6 passed on macOS and 6 passed in a Python 3.12 Linux container; rendered variant colors reviewed.
  • Poetry metadata/lock check, wheel and source build, Pyflakes, and diff whitespace check passed.

Closes #91.

@thunderballfists
thunderballfists merged commit 051d726 into main Sep 30, 2026
10 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Default focus tint replaces a control's colour: variant buttons turn brown, large areas turn bright

1 participant