Tweak menu separator line color on Big Sur some more
Categories
(Core :: Widget: Cocoa, task)
Tracking
()
People
(Reporter: mstange, Assigned: mstange)
References
Details
Attachments
(1 file)
47 bytes,
text/x-phabricator-request
|
pascalc
:
approval-mozilla-beta+
jcristau
:
approval-mozilla-esr78+
|
Details | Review |
The current color doesn't adapt to the background quite the same way the native one does.
The menu has a vibrancy effect, and its background color depends not just on the color immediately behind the menu, but also on the color of the desktop background.
I've checked the colors with various combinations of gray background colors:
Desktop background color | Behind-menu background color | Resulting menu background color | Separator line color |
---|---|---|---|
0 | 0 | 168 | 142 |
0 | 255 | 225 | 199 |
255 | 0 | 181 | 155 |
255 | 255 | 238 | 212 |
(It would be nice if we could use some simple arithmetic to get the actual separator RGBA values from this, but the window is composited with a vibrant blend mode, so this becomes a lot harder.)
I also took a screenshot of a native context menu window using Cmd+Shift+4,Space, which eliminates the vibrant blend mode and adds a solid backdrop.
Solidified background: 231
Separator on top of solidified background: 205
With this in mind, I want to change the separator color to 0.0, 0.0, 0.0, (231 - 205) / 231.0
.
Before patch: 211, 211, 211, 211, 211
After patch: 149, 199, 160, 211, 205
Ideal colors: 142, 199, 155, 212, 205
So even with the patch we're still slightly too bright in some cases but I don't quite understand why. But it should be close enough.
Assignee | ||
Comment 1•4 years ago
|
||
This matches the native appearance more closely.
Comment 3•4 years ago
|
||
bugherder |
Comment 4•4 years ago
|
||
We should uplift this to ESR 78. Bug 1656301 and bug 1668493 are already in.
Assignee | ||
Comment 5•4 years ago
|
||
Comment on attachment 9183492 [details]
Bug 1673046 - Change the menu separator color to a transparent black. r=haik
ESR Uplift Approval Request
- If this is not a sec:{high,crit} bug, please state case for ESR consideration: Compatibility for new OS release
- User impact if declined: Visual imperfection on macOS Big Sur
- Fix Landed on Version: 84
- Risk to taking this patch: Low
- Why is the change risky/not risky? (and alternatives if risky): Tiny color tweak
- String or UUID changes made by this patch:
Assignee | ||
Comment 7•4 years ago
|
||
Comment on attachment 9183492 [details]
Bug 1673046 - Change the menu separator color to a transparent black. r=haik
same request details as comment 5
Comment 8•4 years ago
|
||
Comment on attachment 9183492 [details]
Bug 1673046 - Change the menu separator color to a transparent black. r=haik
Polishing fix, approved for 83 beta 5, thanks.
Comment 9•4 years ago
|
||
bugherder uplift |
Comment 10•4 years ago
|
||
Comment on attachment 9183492 [details]
Bug 1673046 - Change the menu separator color to a transparent black. r=haik
approved for 78.5
Comment 11•4 years ago
|
||
Verified the fix on Firefox Nightly 84.0a1 (20201029095639) and Firefox Beta 83.0b5 (20201027175448)
Comment 12•4 years ago
|
||
bugherder uplift |
Comment 13•4 years ago
|
||
Verified the fix on Firefox 78.5.0esr (20201029151426)
Description
•