Bug 1368679 - Increase hover opacity of window control buttons, apply the hover effect on the menu bar. r=dao
MozReview-Commit-ID: 2pw4UHOnzNE
--- a/browser/themes/windows/browser-aero.css
+++ b/browser/themes/windows/browser-aero.css
@@ -185,22 +185,24 @@
.titlebar-button > .toolbarbutton-icon {
width: 10.8px;
height: 10.8px;
}
}
@media (-moz-windows-default-theme) {
%ifdef MOZ_PHOTON_THEME
+ #main-menubar > menu[_moz-menuactive="true"],
.titlebar-button:hover {
- background-color: hsla(0,0%,100%,.12);
+ background-color: hsla(0,0%,100%,.22);
}
.titlebar-button:hover:active {
- background-color: hsla(0,0%,100%,.22);
+ background-color: hsla(0,0%,100%,.32);
}
+ #main-menubar > menu[_moz-menuactive="true"]:-moz-lwtheme-darktext,
.titlebar-button:-moz-lwtheme-darktext:hover {
background-color: hsla(0,0%,0%,.12);
}
.titlebar-button:-moz-lwtheme-darktext:hover:active {
background-color: hsla(0,0%,0%,.22);
}
%else
.titlebar-button:hover {
@@ -292,16 +294,22 @@
/* Artificially draw window borders that are covered by lwtheme, see bug 591930.
* Borders for win7 are below, win10 doesn't need them. */
#main-window[sizemode="normal"] > #tab-view-deck > #browser-panel:-moz-lwtheme {
border-top: 1px solid @toolbarShadowColor@;
}
}
@media (-moz-windows-default-theme) {
+%ifdef MOZ_PHOTON_THEME
+ #main-menubar > menu {
+ -moz-appearance: none;
+ }
+%endif
+
#main-menubar > menu:not(:-moz-lwtheme) {
color: inherit;
}
/* Use a different color only on Windows 8 and higher for inactive windows.
* On Win 7, the menubar fog disappears for inactive windows, and renders gray
* illegible.
*/