various colors in cocoa look and feel are incorrectly implemented. b=371053 r=smorgan sr=pinkerton

This commit is contained in:
joshmoz%gmail.com 2007-02-20 21:52:04 +00:00
Родитель 4bb9358f0a
Коммит 068a2a47ce
1 изменённых файлов: 13 добавлений и 8 удалений

Просмотреть файл

@ -20,6 +20,7 @@
* the Initial Developer. All Rights Reserved.
*
* Contributor(s):
* Josh Aas <josh@mozilla.com>
*
* Alternatively, the contents of this file may be used under the terms of
* either the GNU General Public License Version 2 or later (the "GPL"), or
@ -103,20 +104,24 @@ nsresult nsLookAndFeel::NativeGetColor(const nsColorID aID, nscolor &aColor)
res = NS_OK;
}
break;
case eColor_highlight: // CSS2 color
case eColor_TextSelectBackground:
case eColor__moz_menuhover:
res = GetMacBrushColor(kThemeBrushPrimaryHighlightColor, aColor, NS_RGB(0x00,0x00,0x00));
break;
case eColor_highlighttext: // CSS2 color
case eColor_highlight: // CSS2 color
case eColor__moz_menuhover:
res = GetMacAccentColor(eColorOffset_mac_accentregularshadow, aColor, NS_RGB(0x33,0x6F,0xCB));
break;
case eColor_TextSelectForeground:
case eColor__moz_menuhovertext:
GetColor(eColor_TextSelectBackground, aColor);
if (aColor == 0x000000)
aColor = NS_RGB(0xff,0xff,0xff);
else
aColor = NS_DONT_CHANGE_COLOR;
break;
case eColor_highlighttext: // CSS2 color
case eColor__moz_menuhovertext:
res = GetMacTextColor(kThemeTextColorMenuItemSelected, aColor, NS_RGB(0xFF,0xFF,0xFF));
break;
case eColor_IMESelectedRawTextBackground:
case eColor_IMESelectedConvertedTextBackground:
case eColor_IMERawInputBackground: