зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1691428 - Fix styling of unthemed menupopups and menuitems in Linux. r=dao
The background change matches Windows / Mac, and common sense too. The customoptionstyling change is because that comment is just false, although custom select is not enabled on Linux (though maybe it could after this patch, will look into it separately). Finally, give some padding to unthemed menuitems. GTK overrides this padding with the theme one, but this allows having a sane default. This is the padding I get with Adwaita, which is the default GTK theme. Differential Revision: https://phabricator.services.mozilla.com/D104874
This commit is contained in:
Родитель
156536c558
Коммит
bdf8e636ad
|
@ -15,6 +15,10 @@ menubar {
|
|||
font: menu;
|
||||
}
|
||||
|
||||
menuitem {
|
||||
padding: 4px 6px;
|
||||
}
|
||||
|
||||
menu,
|
||||
menuitem,
|
||||
menucaption {
|
||||
|
@ -41,13 +45,6 @@ menuitem[customoptionstyling="true"] {
|
|||
appearance: none;
|
||||
}
|
||||
|
||||
menuitem[customoptionstyling="true"][_moz-menuactive="true"] {
|
||||
/* -moz-menuhovertext and -moz-menuhover only apply
|
||||
when -moz-appearance is set to menuitem. */
|
||||
color: highlighttext;
|
||||
background-color: highlight;
|
||||
}
|
||||
|
||||
menu[disabled="true"],
|
||||
menuitem[disabled="true"],
|
||||
menucaption[disabled="true"] {
|
||||
|
|
|
@ -12,6 +12,7 @@ panel {
|
|||
appearance: auto;
|
||||
-moz-default-appearance: menupopup;
|
||||
min-width: 1px;
|
||||
background-color: Menu;
|
||||
color: MenuText;
|
||||
}
|
||||
|
||||
|
|
|
@ -12,7 +12,7 @@ panel {
|
|||
border: 1px solid ThreeDShadow;
|
||||
padding: 0;
|
||||
min-width: 1px;
|
||||
background: Menu;
|
||||
background-color: Menu;
|
||||
color: MenuText;
|
||||
}
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче