mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 1024930 - Change text highlighting color. r=roc
This commit is contained in:
parent
a1b2f6640e
commit
2675fb01c1
@ -15,7 +15,8 @@
|
||||
// See http://www.w3.org/TR/AERT#color-contrast
|
||||
#define NS_SUFFICIENT_LUMINOSITY_DIFFERENCE 125000
|
||||
#define NS_LUMINOSITY_DIFFERENCE(a, b) \
|
||||
int32_t(mozilla::Abs(NS_GetLuminosity(a) - NS_GetLuminosity(b)))
|
||||
int32_t(mozilla::Abs( \
|
||||
NS_GetLuminosity(a | 0xff000000) - NS_GetLuminosity(b | 0xff000000)))
|
||||
|
||||
// To determine colors based on the background brightness and border color
|
||||
void NS_GetSpecial3DColors(nscolor aResult[2],
|
||||
|
@ -92,6 +92,8 @@ nsLookAndFeel::NativeGetColor(ColorID aID, nscolor &aColor)
|
||||
aColor = TEXT_NORMAL_COLOR;
|
||||
break;
|
||||
case eColorID_TextSelectBackground:
|
||||
aColor = NS_RGBA(0x33,0xb5,0xe5,0x66);
|
||||
break;
|
||||
case eColorID_IMESelectedRawTextBackground:
|
||||
case eColorID_IMESelectedConvertedTextBackground:
|
||||
// still used
|
||||
|
Loading…
Reference in New Issue
Block a user