Commit 1fdc033
Closes #3141.
## Summary
Mechanical token swap in `CatControlApplet.cpp::kGreenToggle`:
- `background: #006040` → `background: {{color.background.success}}`
- Stale comment block about "no dark-success-background token" removed
(the token landed in PR #3130 alongside the Theme Editor work).
## Why
The literal `#006040` was bit-identical to the new dark token
`color.background.success`, so the swap is visually-identical on Default
Dark. The original concern was light theme: the hardcoded saturated
dark-green on a light surround was unreadable. With the token, light
theme now resolves to the soft mint `#c8e8d0` defined in
`default-light.json`.
## Diff
```cpp
// Before
"QPushButton:checked { background: #006040; color: {{color.accent.success}}; "
"border: 1px solid {{color.accent.success}}; }";
// After
"QPushButton:checked { background: {{color.background.success}}; "
"color: {{color.accent.success}}; "
"border: 1px solid {{color.accent.success}}; }";
```
## Verification
Built on Windows 11 (MSVC + Ninja + Qt 6) on top of
`aethersdr/AetherSDR` main at `9f3f1c4c`. Smoke-tested both docked and
floating CAT Control variants in both bundled themes:
| Theme | Variant | `:checked` background | Result |
| --- | --- | --- | --- |
| Default Dark | docked | `#006040` (token resolves to bit-identical
value) | unchanged ✓ |
| Default Dark | floating pop-out | `#006040` | unchanged ✓ |
| Default Light | docked | `#c8e8d0` soft mint | legible ✓ |
| Default Light | floating pop-out | `#c8e8d0` | legible ✓ |
Screenshots of dark `:checked` (proof of pixel-identical regression) and
light `:checked` (the legibility fix) available — happy to attach to the
description in a follow-up commit comment.
## Acceptance checklist (from #3141)
- [x] `#006040` literal removed from `kGreenToggle` in
`CatControlApplet.cpp`
- [x] Stale "no dark-success-background token" comment removed
- [x] Dark theme renders identically (token is bit-identical)
- [x] Light theme `:checked` button is now legible
cc @ten9876 @jensenpat
73 Nigel G0JKN
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-authored-by: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
1 parent adcbd17 commit 1fdc033
1 file changed
Lines changed: 2 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
24 | 24 | | |
25 | 25 | | |
26 | 26 | | |
27 | | - | |
28 | | - | |
| 27 | + | |
29 | 28 | | |
30 | 29 | | |
31 | 30 | | |
32 | 31 | | |
33 | 32 | | |
34 | | - | |
| 33 | + | |
35 | 34 | | |
36 | 35 | | |
37 | 36 | | |
| |||
0 commit comments