[Pkg-mozext-commits] [tabmixplus] 17/107: Selected tab doesn't show custom background color in the middle

David Prévot taffit at moszumanska.debian.org
Tue Dec 29 19:02:45 UTC 2015


This is an automated email from the git hooks/post-receive script.

taffit pushed a commit to branch master
in repository tabmixplus.

commit e6515f15e74bae7a7d7b7dc367b606f1e48a2dde
Author: onemen <tabmix.onemen at gmail.com>
Date:   Tue Oct 20 22:32:11 2015 +0300

    Selected tab doesn't show custom background color in the middle
---
 chrome/skin/app_version/39.0/win/browser.css | 14 ++++++++++++++
 modules/DynamicRules.jsm                     |  5 +++--
 2 files changed, 17 insertions(+), 2 deletions(-)

diff --git a/chrome/skin/app_version/39.0/win/browser.css b/chrome/skin/app_version/39.0/win/browser.css
index 30dd15f..e7f9c4b 100644
--- a/chrome/skin/app_version/39.0/win/browser.css
+++ b/chrome/skin/app_version/39.0/win/browser.css
@@ -17,3 +17,17 @@
     #tabbrowser-tabs[tabmix_otherStyle~="aus"] > .tabbrowser-tab:not([visuallyselected="true"]):not([tabmix_tabState]) > .tab-stack > .tab-background > .tab-background-middle {
   clip-path: none !important;
 }
+
+/* Override Windows 10 rulse */
+ at media not all and (-moz-os-version: windows-xp) {
+  @media not all and (-moz-os-version: windows-vista) {
+    @media not all and (-moz-os-version: windows-win7) {
+      @media not all and (-moz-os-version: windows-win8) {
+        #tabbrowser-tabs[tabmix_currentStyle~="bg"] > .tabbrowser-tab[visuallyselected="true"] > .tab-stack > .tab-background > .tab-background-middle {
+          background-size: auto 100%, auto 100%, auto 100%;
+          background-clip: content-box;
+        }
+      }
+    }
+  }
+}
diff --git a/modules/DynamicRules.jsm b/modules/DynamicRules.jsm
index 5f22542..d67b54c 100644
--- a/modules/DynamicRules.jsm
+++ b/modules/DynamicRules.jsm
@@ -46,6 +46,7 @@ this.DynamicRules = {
     this._initialized = true;
 
     this.treeStyleTab = aWindow.Tabmix.extensions.treeStyleTab;
+    this.windows10 = aWindow.navigator.oscpu.startsWith("Windows NT 10.0");
 
     Prefs.addObserver("", this, false);
     STYLENAMES.forEach(function(pref) {
@@ -151,11 +152,11 @@ this.DynamicRules = {
             space20 + bottomBorder +
             space20 + bgImage.body;
       bgImage.bgselected = 'url("chrome://browser/skin/tabbrowser/tab-active-middle.png"),\n' +
-            space20 + bottomBorder +
+            space20 + (this.windows10 ? "none,\n" : bottomBorder) +
             space20 + 'linear-gradient(transparent, transparent 2px, #topColor 2px, #bottomColor)';
       bgImage.startEndselected = bgImage.bgselected;
       bgImage.bghover = 'url("chrome://browser/skin/customizableui/background-noise-toolbar.png"),\n' +
-            space20 + bottomBorder +
+            space20 + (this.windows10 ? "none,\n" : bottomBorder) +
             space20 + 'linear-gradient(transparent, transparent 2px,\n' +
             space26 + 'rgba(254, 254, 254, 0.72) 2px, rgba(254, 254, 254, 0.72) 2px,\n' +
             space26 + 'rgba(250, 250, 250, 0.88) 3px, rgba(250, 250, 250, 0.88) 3px,\n' +

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-mozext/tabmixplus.git



More information about the Pkg-mozext-commits mailing list