RESOLVED FIXED 225375
[macOS] Use system colors for ActiveButtonText
https://bugs.webkit.org/show_bug.cgi?id=225375
Summary [macOS] Use system colors for ActiveButtonText
Aditya Keerthi
Reported 2021-05-04 17:46:16 PDT
...
Attachments
Patch for EWS (1.96 KB, patch)
2021-05-04 17:48 PDT, Aditya Keerthi
no flags
Patch (3.12 KB, patch)
2021-05-05 12:43 PDT, Aditya Keerthi
thorton: review+
Patch for landing (3.40 KB, patch)
2021-05-05 13:39 PDT, Aditya Keerthi
no flags
Aditya Keerthi
Comment 1 2021-05-04 17:46:39 PDT
Aditya Keerthi
Comment 2 2021-05-04 17:48:06 PDT
Created attachment 427716 [details] Patch for EWS
Aditya Keerthi
Comment 3 2021-05-05 12:43:26 PDT
Tim Horton
Comment 4 2021-05-05 13:11:40 PDT
Comment on attachment 427790 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=427790&action=review > Source/WebCore/rendering/RenderThemeMac.mm:414 > + if ([cell interiorBackgroundStyle] == NSBackgroundStyleEmphasized) Should also have a FIXME and an AppKit radar on all of this.
Aditya Keerthi
Comment 5 2021-05-05 13:39:56 PDT
Created attachment 427801 [details] Patch for landing
EWS
Comment 6 2021-05-05 19:34:36 PDT
Committed r277067 (237370@main): <https://commits.webkit.org/237370@main> All reviewed patches have been landed. Closing bug and clearing flags on attachment 427801 [details].
Simon Fraser (smfr)
Comment 7 2021-05-05 21:23:28 PDT
Comment on attachment 427801 [details] Patch for landing View in context: https://bugs.webkit.org/attachment.cgi?id=427801&action=review > Source/WebCore/rendering/RenderThemeMac.mm:423 > + auto cell = adoptNS([[NSButtonCell alloc] init]); > + [cell setBezelStyle:NSBezelStyleRounded]; > + [cell setHighlighted:YES]; > + > + NSColor *activeButtonTextColor; > + if ([cell interiorBackgroundStyle] == NSBackgroundStyleEmphasized) > + activeButtonTextColor = [NSColor alternateSelectedControlTextColor]; > + else > + activeButtonTextColor = [NSColor controlTextColor]; > + > + return semanticColorFromNSColor(activeButtonTextColor); Do we call this every time we paint a button? Can we cache it?
Tim Horton
Comment 8 2021-05-05 23:15:13 PDT
(In reply to Simon Fraser (smfr) from comment #7) > Comment on attachment 427801 [details] > Patch for landing > Do we call this every time we paint a button? Can we cache it? See the changelog :)
Note You need to log in before you can comment on or make changes to this bug.