зеркало из https://github.com/mozilla/pjs.git
r=mkaply, sr=mkaply (OS/2 only) Get menus looking more OS/2 like
This commit is contained in:
Родитель
118721c5f7
Коммит
0dd278dbb3
|
@ -149,11 +149,9 @@ nsresult nsLookAndFeel::NativeGetColor(const nsColorID aID, nscolor &aColor)
|
|||
idx = SYSCLR_MENUDISABLEDTEXT;
|
||||
break;
|
||||
case eColor_highlight:
|
||||
case eColor__moz_menuhover:
|
||||
idx = SYSCLR_HILITEBACKGROUND;
|
||||
break;
|
||||
case eColor_highlighttext:
|
||||
case eColor__moz_menuhovertext:
|
||||
idx = SYSCLR_HILITEFOREGROUND;
|
||||
break;
|
||||
case eColor_inactiveborder:
|
||||
|
@ -221,13 +219,17 @@ nsresult nsLookAndFeel::NativeGetColor(const nsColorID aID, nscolor &aColor)
|
|||
case eColor__moz_buttondefault:
|
||||
idx = SYSCLR_BUTTONDEFAULT;
|
||||
break;
|
||||
case eColor__moz_menuhover:
|
||||
idx = SYSCLR_MENUHILITEBGND;
|
||||
break;
|
||||
case eColor__moz_menuhovertext:
|
||||
case eColor__moz_menubarhovertext:
|
||||
idx = SYSCLR_MENUTEXT;
|
||||
idx = SYSCLR_MENUHILITE;
|
||||
break;
|
||||
default:
|
||||
idx = SYSCLR_WINDOW;
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
long lColor = WinQuerySysColor( HWND_DESKTOP, idx, 0);
|
||||
|
||||
|
@ -348,7 +350,7 @@ NS_IMETHODIMP nsLookAndFeel::GetMetric(const nsMetricID aID, PRInt32 & aMetric)
|
|||
default:
|
||||
aMetric = 0;
|
||||
res = NS_ERROR_FAILURE;
|
||||
}
|
||||
}
|
||||
return res;
|
||||
}
|
||||
|
||||
|
@ -390,7 +392,7 @@ NS_IMETHODIMP nsLookAndFeel::GetMetric(const nsMetricFloatID aID, float & aMetri
|
|||
default:
|
||||
aMetric = -1.0;
|
||||
res = NS_ERROR_FAILURE;
|
||||
}
|
||||
}
|
||||
return res;
|
||||
}
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче