Skip to content

fix(cga): inspect padding shares the removed yellow, not flat white#59

Merged
peczenyj merged 1 commit into
develfrom
fix/cga-inspect-padding
May 27, 2026
Merged

fix(cga): inspect padding shares the removed yellow, not flat white#59
peczenyj merged 1 commit into
develfrom
fix/cga-inspect-padding

Conversation

@peczenyj

Copy link
Copy Markdown
Owner

In inspect mode the cga palette rendered padding as flat bright white, unlike amber/green which dim their single hue for padding (bold-hue header + faint-hue padding two-tone). White had no relationship to the rest of the CGA palette, so it read as flat.

Now CGA inspect padding uses bright yellow — the same color the diff uses for removed lines — tying "wasted padding" to "removed" and giving inspect a real CGA color. Header stays bold magenta.

type FuncField struct { ...        <- bold magenta
    Retries uint8 // size: 1...
    _   // 7 byte padding           <- bright yellow (matches diff removed)
    ...
}

Test plan

  • theme_internal_test.go: added an assertion that cga.Padding renders bright yellow (93).
  • Inspect goldens render with Color: false, so no fixtures change.
  • task ci green (154 tests, 0 lint issues); verified against ./_example.

Closes #58

🤖 Generated with Claude Code

In inspect mode the cga padding was flat bright white, unlike amber/green
which dim their hue for padding. White has no relationship to the rest of the
palette, so it read as flat. Use the same bright yellow the diff uses for
removed lines — wasted padding reads like a removal — giving inspect a real
CGA color. Header stays bold magenta; inspect goldens render Color:false so no
fixtures change.

Closes #58

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
@peczenyj peczenyj merged commit bbd36f9 into devel May 27, 2026
6 checks passed
@peczenyj peczenyj deleted the fix/cga-inspect-padding branch May 27, 2026 14:38
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.

CGA inspect padding: use yellow (match removed), not flat white

1 participant