Bug 1169911 - fix windows 10 titlebar coloring/border issues, r=dao

This commit is contained in:
Gijs Kruitbosch 2015-06-03 23:21:31 +01:00
parent f3f8c5b714
commit 6998407b34

View File

@ -108,14 +108,36 @@
}
#main-window {
-moz-appearance: -moz-win-borderless-glass;
-moz-appearance: -moz-win-glass;
background: transparent;
}
#appcontent {
/* On win10, if we don't set this on the entire browser container including
* the sidebar, if the sidebar is open the accent color bleeds through in
* the titlebar */
#browser {
-moz-appearance: -moz-win-exclude-glass;
}
@media (-moz-os-version: windows-vista),
(-moz-os-version: windows-win7) {
#main-window {
-moz-appearance: -moz-win-borderless-glass;
}
/* The borders on the glass frame are ours, and inside #browser, and on
* vista and win7 we want to make sure they are "glassy", so we can't use
* #browser as the exclude-glass container. We use #appcontent instead. */
#browser {
-moz-appearance: none;
}
#appcontent {
-moz-appearance: -moz-win-exclude-glass;
}
}
/* Artificially draw window borders that are covered by lwtheme, see bug 591930. */
#main-window[sizemode="normal"] > #tab-view-deck > #browser-panel:-moz-lwtheme {
border-top: 2px solid;