Bug 1244500 - add support for dark GTK themes when applied to toolbars and the tab strip. r=Gijs, a=lizzard
authorMike de Boer <mdeboer@mozilla.com>
Fri, 08 Apr 2016 16:10:41 +0200
changeset 310542 a779e41439d6063e9684fa3a5f8260a23361b959
parent 310541 e956f6247d517996dde09ad8efba8cb07d95b1d6
child 310543 f92ec72e8b75b2f701b0f7a6e0c46d7c4dbfe907
push id9396
push usercbook@mozilla.com
push dateWed, 13 Apr 2016 13:58:54 +0000
treeherdermozilla-aurora@0066805fc269 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersGijs, lizzard
bugs1244500
milestone47.0a2
Bug 1244500 - add support for dark GTK themes when applied to toolbars and the tab strip. r=Gijs, a=lizzard
browser/themes/linux/browser.css
browser/themes/linux/linuxShared.inc
--- a/browser/themes/linux/browser.css
+++ b/browser/themes/linux/browser.css
@@ -64,16 +64,20 @@
 #navigator-toolbox:-moz-lwtheme::after {
   background-color: rgba(0,0,0,.3);
 }
 
 #navigator-toolbox > toolbar:not(#toolbar-menubar):not(#TabsToolbar) {
   background-image: linear-gradient(@toolbarHighlight@, @toolbarHighlight@);
 }
 
+#navigator-toolbox > toolbar:not(#toolbar-menubar):not(#TabsToolbar):-moz-lwtheme {
+  background-image: linear-gradient(@toolbarHighlightLWT@, @toolbarHighlightLWT@);
+}
+
 #navigator-toolbox > toolbar:not(:-moz-lwtheme):not(#toolbar-menubar):not(#TabsToolbar) {
   -moz-appearance: none;
   border-style: none;
   background-color: -moz-Dialog;
 }
 
 #navigator-toolbox > toolbar:not(#toolbar-menubar):not(#TabsToolbar):not(#nav-bar) {
   padding-top: 1px;
@@ -103,16 +107,20 @@
 }
 
 #nav-bar {
   box-shadow: 0 1px 0 @toolbarHighlight@ inset;
   padding-top: 2px;
   padding-bottom: 2px;
 }
 
+#nav-bar:-moz-lwtheme {
+  box-shadow: 0 1px 0 @toolbarHighlightLWT@ inset;
+}
+
 #nav-bar-overflow-button {
   -moz-image-region: rect(-5px, 12px, 11px, -4px);
 }
 
 /* This only has an effect when this element is placed on the bookmarks toolbar.
  * It's 30px to make sure buttons with 18px icons fit along with the default 16px
  * icons, without changing the size of the toolbar.
  */
--- a/browser/themes/linux/linuxShared.inc
+++ b/browser/themes/linux/linuxShared.inc
@@ -1,10 +1,11 @@
 /* This Source Code Form is subject to the terms of the Mozilla Public
  * License, v. 2.0. If a copy of the MPL was not distributed with this
  * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
 
 %filter substitution
 
-%define toolbarHighlight rgba(255,255,255,.4)
+%define toolbarHighlight hsla(0,0%,100%,.05)
+%define toolbarHighlightLWT rgba(255,255,255,.4)
 %define fgTabTexture linear-gradient(transparent 2px, @toolbarHighlight@ 2px, @toolbarHighlight@)
-%define fgTabTextureLWT @fgTabTexture@
+%define fgTabTextureLWT linear-gradient(transparent 2px, @toolbarHighlightLWT@ 2px, @toolbarHighlightLWT@)
 %define fgTabBackgroundColor -moz-dialog