Bug 1163184 - Fix window borders on devedition theme on windows. r=bgrins, a=sledru
authorGijs Kruitbosch <gijskruitbosch@gmail.com>
Wed, 26 Aug 2015 10:30:18 +0100
changeset 277417 a3ee615760e96ec70672453a4a5880a256b1d826
parent 277416 37782988982967c5db047812518096d893e11f9f
child 277418 af82d216ded712f62ce6338cb46853d5b2ecc154
push id8364
push userryanvm@gmail.com
push dateMon, 31 Aug 2015 12:16:24 +0000
treeherdermozilla-aurora@af82d216ded7 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersbgrins, sledru
bugs1163184
milestone42.0a2
Bug 1163184 - Fix window borders on devedition theme on windows. r=bgrins, a=sledru
browser/themes/windows/devedition.css
--- a/browser/themes/windows/devedition.css
+++ b/browser/themes/windows/devedition.css
@@ -235,16 +235,32 @@
 
   /* Override the padding that's intended to compensate for tabs that can overlap border-radius on nav-bar in default theme. */
   #main-window[sizemode=normal]:not([customizing]) #TabsToolbar {
     padding-left: 0;
     padding-right: 0;
   }
 }
 
+/* Restored windows get an artificial border on windows, because the lwtheme background
+ * overlaps the regular window border. That isn't the case for us, so we avoid painting
+ * over the native border with our custom borders: */
+#browser-panel {
+  /* These are !important to avoid specificity-wars with the selectors that add borders here. */
+  background-image: none !important;
+  border-top: none !important;
+}
+
+#navigator-toolbox {
+  /* The side borders on the toolbox also look out-of-place because we don't paint over
+   * the native background color at all, and these are !important for the same reason as above. */
+  border-left: none !important;
+  border-right: none !important;
+}
+
 @media (-moz-os-version: windows-win10) {
   /* Always keep draggable space on the sides of tabs since there is no top margin on Win10 */
   #main-window .tabbrowser-arrowscrollbox > .arrowscrollbox-scrollbox {
     padding-left: 15px;
     padding-right: 15px;
   }
 
   /* Force white caption buttons for the dark theme on Windows 10 */