RESOLVED FIXED 238108
Add an addition point for system background color
https://bugs.webkit.org/show_bug.cgi?id=238108
Summary Add an addition point for system background color
Tim Horton
Reported 2022-03-19 00:21:22 PDT
Use hardcoded base background color to avoid transparent backgrounds
Attachments
Patch (19.22 KB, patch)
2022-03-19 00:24 PDT, Tim Horton
no flags
Patch (19.07 KB, patch)
2022-03-19 14:25 PDT, Tim Horton
no flags
Patch (19.07 KB, patch)
2022-03-19 14:34 PDT, Tim Horton
no flags
Tim Horton
Comment 1 2022-03-19 00:24:26 PDT
Aditya Keerthi
Comment 2 2022-03-19 10:37:28 PDT
Comment on attachment 455166 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=455166&action=review > Source/WebCore/platform/ios/WebCoreUIColorExtras.mm:38 > + return (UIColor *)[PAL::getUIColorClass() blackColor]; The system background color is not always black or white. The trait collection's `userInterfaceLevel` and `accessibilityContrast` also affect this color. I don't think it would be a good idea to hardcode all the variations – I'll talk to you about possible alternate solutions.
Tim Horton
Comment 3 2022-03-19 14:25:19 PDT
Tim Horton
Comment 4 2022-03-19 14:34:09 PDT
EWS
Comment 5 2022-03-21 10:45:56 PDT
Committed r291564 (248666@main): <https://commits.webkit.org/248666@main> All reviewed patches have been landed. Closing bug and clearing flags on attachment 455177 [details].
Radar WebKit Bug Importer
Comment 6 2022-03-21 10:46:18 PDT
Note You need to log in before you can comment on or make changes to this bug.