mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-24 13:21:05 +00:00
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:
parent
bb4e7deeb8
commit
e8c9144643
@ -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];
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user