Bug 1164952 - Fix transparent window background in Dev Edition theme for Windows 7 classic mode;r=MattN

This commit is contained in:
Brian Grinstead 2015-05-15 18:34:57 -07:00
parent e67914cb3a
commit 9d8d02bf48
2 changed files with 21 additions and 3 deletions

View File

@ -739,9 +739,6 @@ BrowserGlue.prototype = {
LightweightThemeManager.addBuiltInTheme({
id: "firefox-devedition@mozilla.org",
name: themeName,
#ifdef XP_WIN
accentcolor: "transparent",
#endif
headerURL: "resource:///chrome/browser/content/browser/defaultthemes/devedition.header.png",
iconURL: "resource:///chrome/browser/content/browser/defaultthemes/devedition.icon.png",
author: vendorShortName,

View File

@ -10,6 +10,27 @@
--chrome-nav-bar-separator-color: rgba(10, 31, 51, 0.35);
}
/* The window background is white due to no accentcolor in the lightweight
theme. It can't be changed to transparent when there is no compositor
(Win XP or 7 in classic / basic theme), or else dragging and focus become
broken. So instead just show the normal titlebar in that case, and override
the window color as transparent when the compositor is available. */
@media not all and (-moz-windows-compositor) {
#main-window[tabsintitlebar] #titlebar:-moz-lwtheme {
visibility: visible;
}
#main-window {
background: var(--chrome-background-color) !important;
}
}
@media (-moz-windows-compositor) {
#main-window {
background: transparent !important;
}
}
#TabsToolbar::after {
display: none;
}