зеркало из https://github.com/mozilla/pjs.git
Bug 412281 - "[GTK] Unfocused options list looks like focused ones" (use -moz-cellhighlight* for non focused selects) [p=twanno@lycos.nl (Teune van Steeg) r+sr=roc a1.9=schrep]
This commit is contained in:
Родитель
aa43b4378e
Коммит
2300eb5ef6
|
@ -251,6 +251,12 @@ select > option {
|
|||
}
|
||||
|
||||
option:checked {
|
||||
background-color: -moz-cellhighlight !important;
|
||||
color: -moz-cellhighlighttext !important;
|
||||
}
|
||||
|
||||
select:focus > option:checked,
|
||||
select:focus > optgroup > option:checked {
|
||||
background-color: Highlight ! important;
|
||||
color: HighlightText ! important;
|
||||
}
|
||||
|
|
|
@ -267,7 +267,6 @@ nsresult nsLookAndFeel::NativeGetColor(const nsColorID aID, nscolor &aColor)
|
|||
res = GetMacTextColor(kThemeTextColorDialogActive, aColor, NS_RGB(0x00,0x00,0x00));
|
||||
break;
|
||||
case eColor__moz_dialog:
|
||||
case eColor__moz_cellhighlight:
|
||||
// XXX There may be a better color for this, but I'm making it
|
||||
// the same as ThreeDFace since that's what's currently used where
|
||||
// I will use -moz-Dialog:
|
||||
|
@ -335,6 +334,7 @@ nsresult nsLookAndFeel::NativeGetColor(const nsColorID aID, nscolor &aColor)
|
|||
GetMacBrushColor(kThemeBrushPrimaryHighlightColor, fallbackColor, NS_RGB(0x00,0x00,0x00));
|
||||
res = GetMacBrushColor(kThemeBrushAlternatePrimaryHighlightColor, aColor, fallbackColor);
|
||||
break;
|
||||
case eColor__moz_cellhighlight:
|
||||
case eColor__moz_mac_secondaryhighlight:
|
||||
// For inactive list selection
|
||||
res = GetMacBrushColor(kThemeBrushSecondaryHighlightColor, aColor, NS_RGB(0x00,0x00,0x00));
|
||||
|
|
Загрузка…
Ссылка в новой задаче