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

This commit is contained in:
aleth 2016-02-24 23:54:55 +01:00
parent 1cee158463
commit e8563576d7

View File

@ -31,9 +31,20 @@ static const int sLionThemeColors[][2] = {
{ 0x59, 0x87 }, // bottom separator line { 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)) __attribute__((unused))
static int NativeGreyColorAsInt(ColorName name, BOOL isMain) static int NativeGreyColorAsInt(ColorName name, BOOL isMain)
{ {
if (nsCocoaFeatures::OnYosemiteOrLater())
return sYosemiteThemeColors[name][isMain ? 0 : 1];
if (nsCocoaFeatures::OnLionOrLater()) if (nsCocoaFeatures::OnLionOrLater())
return sLionThemeColors[name][isMain ? 0 : 1]; return sLionThemeColors[name][isMain ? 0 : 1];