Commit 0868729
authored
Fix bad contrast for highlighted search results in tables (#9863)
* Fix bad contrast for highlighted search results in tables
`searchMatchColorOpaque` and `activeSearchMatchColorOpaque` are blended
over the row background to highlight search matches. They were migrated
from `withOpacity(0.5)` to `withValues(alpha: 255 / 2)` in #8784; since
`withValues` expects alpha in the range 0.0-1.0, `255 / 2` clamps to fully
opaque. Matched rows then got a solid yellow/orange background while the
row text kept its theme color, making it unreadable (especially in dark
mode).
Restore the intended 0.5 alpha so the highlight stays translucent and the
row text remains legible, and add a regression test.
Fixes #9010
* Rename search match colors to *Translucent; add release note1 parent a549a2e commit 0868729
4 files changed
Lines changed: 20 additions & 6 deletions
Lines changed: 2 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
324 | 324 | | |
325 | 325 | | |
326 | 326 | | |
327 | | - | |
328 | | - | |
| 327 | + | |
| 328 | + | |
329 | 329 | | |
330 | 330 | | |
331 | 331 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
15 | 15 | | |
16 | 16 | | |
17 | 17 | | |
18 | | - | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
19 | 21 | | |
20 | 22 | | |
21 | 23 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
224 | 224 | | |
225 | 225 | | |
226 | 226 | | |
227 | | - | |
| 227 | + | |
228 | 228 | | |
229 | | - | |
230 | | - | |
| 229 | + | |
| 230 | + | |
| 231 | + | |
231 | 232 | | |
232 | 233 | | |
233 | 234 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
99 | 99 | | |
100 | 100 | | |
101 | 101 | | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
102 | 113 | | |
0 commit comments