[OS/2] Bug 368864: try to make menu selection visible on Warp3, r=mkaply
git-svn-id: svn://10.0.0.236/trunk@241279 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
parent
9716edf33c
commit
fd2512da03
@ -220,11 +220,25 @@ nsresult nsLookAndFeel::NativeGetColor(const nsColorID aID, nscolor &aColor)
|
||||
idx = SYSCLR_BUTTONDEFAULT;
|
||||
break;
|
||||
case eColor__moz_menuhover:
|
||||
idx = SYSCLR_MENUHILITEBGND;
|
||||
if (SYSCLR_MENUHILITEBGND == SYSCLR_MENUHILITE) {
|
||||
// if this happens, we would paint menu selections unreadable
|
||||
// (we are most likely on Warp3), so let's fake a dark grey
|
||||
// background for the selected menu item
|
||||
aColor = NS_RGB( 132, 130, 132);
|
||||
return res;
|
||||
} else {
|
||||
idx = SYSCLR_MENUHILITEBGND;
|
||||
}
|
||||
break;
|
||||
case eColor__moz_menuhovertext:
|
||||
case eColor__moz_menubarhovertext:
|
||||
idx = SYSCLR_MENUHILITE;
|
||||
if (SYSCLR_MENUHILITEBGND == SYSCLR_MENUHILITE) {
|
||||
// white text to be readable on dark grey
|
||||
aColor = NS_RGB( 255, 255, 255);
|
||||
return res;
|
||||
} else {
|
||||
idx = SYSCLR_MENUHILITE;
|
||||
}
|
||||
break;
|
||||
default:
|
||||
idx = SYSCLR_WINDOW;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user