Bug 1668493 - macOS 11.0 - Popup Menus separator lines have blue tint r=mstange

Slight color adjustment of the separator.

Differential Revision: https://phabricator.services.mozilla.com/D92273
This commit is contained in:
Haik Aftandilian 2020-10-02 19:40:33 +00:00
parent 9feb23a7d6
commit f0efce15ed

View File

@ -1214,7 +1214,7 @@ void nsNativeThemeCocoa::DrawMenuSeparator(CGContextRef cgContext, const CGRect&
separatorRect.size.width -= 42;
separatorRect.origin.x += 21;
// Use a gray color similar to the native separator
DeviceColor color = ToDeviceColor(mozilla::gfx::sRGBColor::FromU8(193, 208, 208, 255));
DeviceColor color = ToDeviceColor(mozilla::gfx::sRGBColor::FromU8(211, 211, 211, 255));
CGContextSetRGBFillColor(cgContext, color.r, color.g, color.b, color.a);
CGContextFillRect(cgContext, separatorRect);
return;