Commit 1b8a0eb
committed
Fix: macOS background color rendering using incorrect color
On macOS, NSRect.fill(using:) uses NSColor (set via NSColor.set() or
setFill()), not the CGContext's fill color that was set via
context.setFillColor().
This caused background colors to be rendered incorrectly - for example,
when running `ls --color` in a terminal, files that should have colored
foreground text would instead appear with that color as background.
The fix adds backgroundColor.setFill() before calling rect.fill() to
ensure the correct NSColor is used for background rendering.1 parent 7f7541a commit 1b8a0eb
1 file changed
Lines changed: 3 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
766 | 766 | | |
767 | 767 | | |
768 | 768 | | |
| 769 | + | |
| 770 | + | |
| 771 | + | |
769 | 772 | | |
770 | 773 | | |
771 | 774 | | |
| |||
0 commit comments