mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 1251019 - Add -moz-mac-chrome-active and -inactive colours for OS X 10.10 and higher. r=mstange
This commit is contained in:
parent
1cee158463
commit
e8563576d7
@ -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];
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user