Summary: | Text selection color is hard to see in dark mode web views | ||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Product: | WebKit | Reporter: | Timothy Hatcher <timothy> | ||||||||||
Component: | Layout and Rendering | Assignee: | Timothy Hatcher <timothy> | ||||||||||
Status: | RESOLVED FIXED | ||||||||||||
Severity: | Normal | CC: | bfulgham, commit-queue, megan_gardner, rniwa, simon.fraser, thorton, webkit-bug-importer, zalan | ||||||||||
Priority: | P2 | Keywords: | InRadar | ||||||||||
Version: | WebKit Nightly Build | ||||||||||||
Hardware: | Unspecified | ||||||||||||
OS: | Unspecified | ||||||||||||
Attachments: |
|
Description
Timothy Hatcher
2018-08-02 10:05:57 PDT
Created attachment 346389 [details]
Patch
Created attachment 346390 [details]
Before: blendWithWhite()
Created attachment 346391 [details]
After: 80% Alpha
Comment on attachment 346389 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=346389&action=review > Source/WebCore/rendering/RenderThemeMac.mm:345 > + return !color.isOpaque() ? color : color.colorWithAlpha(0.8); Would be nicer to say where the 0.8 comes from. > Source/WebCore/rendering/RenderThemeMac.mm:784 > + return Color(0xCC3F638B, Color::Semantic); Would prefer to see use the Color(int, int, int) constructor. Comment on attachment 346389 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=346389&action=review >> Source/WebCore/rendering/RenderThemeMac.mm:345 >> + return !color.isOpaque() ? color : color.colorWithAlpha(0.8); > > Would be nicer to say where the 0.8 comes from. Okay. >> Source/WebCore/rendering/RenderThemeMac.mm:784 >> + return Color(0xCC3F638B, Color::Semantic); > > Would prefer to see use the Color(int, int, int) constructor. Other colors in RenderTheme are hex, so I kept them consistent. Created attachment 346406 [details]
Patch
Comment on attachment 346406 [details] Patch Clearing flags on attachment: 346406 Committed r234512: <https://trac.webkit.org/changeset/234512> All reviewed patches have been landed. Closing bug. |