Bug 1024930 - Change text highlighting color. r=roc

This commit is contained in:
Morris Tseng 2014-07-30 00:11:00 -04:00
parent a1b2f6640e
commit 2675fb01c1
2 changed files with 4 additions and 1 deletions

View File

@ -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],

View File

@ -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