Bug 1264227: lighten the box shadow inside the navbar on Linux to match the active tab highlight color. r=Gijs, a=lizzard
authorMike de Boer <mdeboer@mozilla.com>
Thu, 14 Apr 2016 12:22:13 +0200
changeset 323974 c0d6effecccbae1a3105e231428947d5c0d23ded
parent 323973 d6d1d04e3dbdecaefc54b3623f28226133aef722
child 323975 ae136454b6b76b79a5bf9498fe262c75bd03c763
push id5913
push userjlund@mozilla.com
push dateMon, 25 Apr 2016 16:57:49 +0000
treeherdermozilla-beta@dcaf0a6fa115 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersGijs, lizzard
bugs1264227
milestone47.0a2
Bug 1264227: lighten the box shadow inside the navbar on Linux to match the active tab highlight color. 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
@@ -102,25 +102,21 @@
   /* Move up into the TabsToolbar for the inner highlight at the top of the nav-bar */
   margin-top: calc(-1 * var(--navbar-tab-toolbar-highlight-overlap));
   /* Position the toolbar above the bottom of background tabs */
   position: relative;
   z-index: 1;
 }
 
 #nav-bar {
-  box-shadow: 0 1px 0 @toolbarHighlight@ inset;
+  box-shadow: 0 1px 0 @navbarInsetHighlight@ 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,11 +1,13 @@
 /* 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 hsla(0,0%,100%,.05)
 %define toolbarHighlightLWT rgba(255,255,255,.4)
+/* navbarInsetHighlight is tightly coupled to the toolbarHighlight constant. */
+%define navbarInsetHighlight hsla(0,0%,100%,.4)
 %define fgTabTexture linear-gradient(transparent 2px, @toolbarHighlight@ 2px, @toolbarHighlight@)
 %define fgTabTextureLWT linear-gradient(transparent 2px, @toolbarHighlightLWT@ 2px, @toolbarHighlightLWT@)
 %define fgTabBackgroundColor -moz-dialog