Commit 069bc40
committed
Bugfix: selection-fg switches + dropdown description readable
Two reports from the same tester: (1) selected file names in the file list have low contrast against the pane bg, especially with the cursor over them and on tinted panes; (2) the secondary description text in the "File size format" dropdown is unreadable when an option is highlighted.
- `--color-selection-fg` split into `--color-selection-fg-primary` + `--color-selection-fg-fallback` (= `--color-text-primary`). New CSS rule swaps to fallback in the dark + tinted pane + focused cursor-active corner where no recognizable gold can clear AA on top of the composite bg.
- `--color-accent-fg` already auto-picks black/white per accent (earlier work). The dropdown description now inherits that pick via a `[data-highlighted]` rule in `SettingSelect.svelte` — secondary identity is lost in this state, but on a saturated accent bg there's no opacity-mixed gray that stays both secondary and AA for Apple Purple.
- `data-pane-tint` attribute added to `.file-pane` (sourced from `volume-tint.svelte.ts:getPaneTintName`) so the selection-fg fallback rule can scope to tinted panes only.
`scripts/check-a11y-contrast` now passes 0/1070 violations and surfaces every accent variant + tint + cursor state combination as a side effect.1 parent 14a36dd commit 069bc40
4 files changed
Lines changed: 81 additions & 5 deletions
File tree
- apps/desktop/src
- lib
- file-explorer/pane
- settings/components
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
132 | 132 | | |
133 | 133 | | |
134 | 134 | | |
135 | | - | |
136 | | - | |
| 135 | + | |
| 136 | + | |
| 137 | + | |
| 138 | + | |
| 139 | + | |
| 140 | + | |
| 141 | + | |
| 142 | + | |
| 143 | + | |
| 144 | + | |
| 145 | + | |
| 146 | + | |
137 | 147 | | |
138 | 148 | | |
139 | 149 | | |
| |||
318 | 328 | | |
319 | 329 | | |
320 | 330 | | |
| 331 | + | |
| 332 | + | |
| 333 | + | |
| 334 | + | |
| 335 | + | |
| 336 | + | |
| 337 | + | |
| 338 | + | |
| 339 | + | |
| 340 | + | |
| 341 | + | |
| 342 | + | |
| 343 | + | |
| 344 | + | |
321 | 345 | | |
322 | 346 | | |
323 | 347 | | |
| |||
473 | 497 | | |
474 | 498 | | |
475 | 499 | | |
476 | | - | |
477 | | - | |
| 500 | + | |
| 501 | + | |
| 502 | + | |
478 | 503 | | |
479 | 504 | | |
480 | 505 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
89 | 89 | | |
90 | 90 | | |
91 | 91 | | |
92 | | - | |
| 92 | + | |
93 | 93 | | |
94 | 94 | | |
95 | 95 | | |
| |||
360 | 360 | | |
361 | 361 | | |
362 | 362 | | |
| 363 | + | |
| 364 | + | |
| 365 | + | |
| 366 | + | |
| 367 | + | |
| 368 | + | |
| 369 | + | |
363 | 370 | | |
364 | 371 | | |
365 | 372 | | |
| |||
2254 | 2261 | | |
2255 | 2262 | | |
2256 | 2263 | | |
| 2264 | + | |
2257 | 2265 | | |
2258 | 2266 | | |
2259 | 2267 | | |
| |||
Lines changed: 21 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
174 | 174 | | |
175 | 175 | | |
176 | 176 | | |
| 177 | + | |
| 178 | + | |
| 179 | + | |
| 180 | + | |
| 181 | + | |
| 182 | + | |
| 183 | + | |
| 184 | + | |
| 185 | + | |
| 186 | + | |
| 187 | + | |
| 188 | + | |
| 189 | + | |
| 190 | + | |
| 191 | + | |
| 192 | + | |
| 193 | + | |
| 194 | + | |
| 195 | + | |
| 196 | + | |
| 197 | + | |
Lines changed: 22 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
372 | 372 | | |
373 | 373 | | |
374 | 374 | | |
| 375 | + | |
| 376 | + | |
| 377 | + | |
| 378 | + | |
| 379 | + | |
| 380 | + | |
| 381 | + | |
| 382 | + | |
| 383 | + | |
| 384 | + | |
| 385 | + | |
| 386 | + | |
| 387 | + | |
| 388 | + | |
| 389 | + | |
| 390 | + | |
| 391 | + | |
| 392 | + | |
| 393 | + | |
| 394 | + | |
| 395 | + | |
| 396 | + | |
375 | 397 | | |
0 commit comments