Commit 9eaf8e4
committed
fix: tint icons via colorMultiply so status colors render
NotchyIcon's shapes draw with `ctx.stroke(..., with: .color(.primary))`
inside Canvas closures. Canvas does not inherit `.foregroundStyle(...)`
from its parent, so the green/orange status colors set on the notch
pill and tab status indicator silently resolved to the chrome's
.primary (white) and the icons looked monochrome.
Add an explicit `tint: Color` parameter on NotchyIcon (defaults to
white, matching the previous .primary behaviour in dark chrome) and
multiply the rendered output by it via `.colorMultiply`. Update the
notch pill and tab bar call sites to pass `tint: DS.Color.statusXxx`
instead of `.foregroundStyle(...)`.1 parent c701967 commit 9eaf8e4
3 files changed
Lines changed: 12 additions & 12 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
26 | 26 | | |
27 | 27 | | |
28 | 28 | | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
29 | 34 | | |
30 | 35 | | |
31 | 36 | | |
32 | 37 | | |
| 38 | + | |
33 | 39 | | |
34 | 40 | | |
35 | 41 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
630 | 630 | | |
631 | 631 | | |
632 | 632 | | |
633 | | - | |
634 | | - | |
| 633 | + | |
635 | 634 | | |
636 | 635 | | |
637 | | - | |
638 | | - | |
| 636 | + | |
639 | 637 | | |
640 | 638 | | |
641 | | - | |
642 | | - | |
| 639 | + | |
643 | 640 | | |
644 | 641 | | |
645 | 642 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
171 | 171 | | |
172 | 172 | | |
173 | 173 | | |
174 | | - | |
175 | | - | |
| 174 | + | |
176 | 175 | | |
177 | | - | |
178 | | - | |
| 176 | + | |
179 | 177 | | |
180 | | - | |
181 | | - | |
| 178 | + | |
182 | 179 | | |
183 | 180 | | |
184 | 181 | | |
| |||
0 commit comments