Bug 1251019 - Add -moz-mac-chrome-active and -inactive colours for OS X 10.10 and higher. r=mstange

--HG--
extra : rebase_source : f1fb035d5588fd4db09393e3403aee21e0c04f7d
This commit is contained in:
aleth 2016-02-24 23:54:55 +01:00
parent bb4e7deeb8
commit e8c9144643

View File

@ -31,9 +31,20 @@ static const int sLionThemeColors[][2] = {
{ 0x59, 0x87 }, // bottom separator line
};
static const int sYosemiteThemeColors[][2] = {
/* { active window, inactive window } */
// toolbar:
{ 0xBD, 0xDF }, // top separator line
{ 0xD3, 0xF6 }, // fill color
{ 0xB3, 0xD1 }, // bottom separator line
};
__attribute__((unused))
static int NativeGreyColorAsInt(ColorName name, BOOL isMain)
{
if (nsCocoaFeatures::OnYosemiteOrLater())
return sYosemiteThemeColors[name][isMain ? 0 : 1];
if (nsCocoaFeatures::OnLionOrLater())
return sLionThemeColors[name][isMain ? 0 : 1];