Commit 7487286
fix(bloatmac): light-mode contrast on in-window menubar widget popover
The popover used `.ultraThinMaterial` with `.foregroundStyle(.white)` —
fine in dark mode but in light mode the white "BloatMac"/"Storage"/
"445 GB used"/"50 GB free" labels rendered nearly invisible against the
light material (the screenshot showed ~1.5:1 contrast, well below
WCAG AA's 4.5:1 minimum for body text).
Replace the material background with `Tokens.bgPanel` (already
theme-aware) and route every Text foregroundStyle through Tokens.text /
.text2 / .text3 so contrast stays correct in both themes. Same shadow
treatment, dropped to opacity 0.30 since it no longer needs to rescue a
translucent panel against a bright window.
Border switches to `Tokens.border` so it tracks the rest of the UI's
hairline treatment instead of a hardcoded white-12%.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>1 parent c1c0420 commit 7487286
1 file changed
Lines changed: 17 additions & 9 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
82 | 82 | | |
83 | 83 | | |
84 | 84 | | |
| 85 | + | |
85 | 86 | | |
86 | 87 | | |
87 | | - | |
| 88 | + | |
| 89 | + | |
88 | 90 | | |
89 | 91 | | |
90 | | - | |
| 92 | + | |
| 93 | + | |
91 | 94 | | |
92 | 95 | | |
93 | | - | |
94 | | - | |
95 | | - | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
96 | 105 | | |
97 | 106 | | |
98 | 107 | | |
| |||
104 | 113 | | |
105 | 114 | | |
106 | 115 | | |
107 | | - | |
108 | | - | |
| 116 | + | |
| 117 | + | |
109 | 118 | | |
110 | | - | |
| 119 | + | |
111 | 120 | | |
112 | 121 | | |
113 | | - | |
114 | 122 | | |
115 | 123 | | |
116 | 124 | | |
| |||
0 commit comments