[Pkg-mozext-commits] [tabmixplus] 03/26: In windows XP, multi-row background is not match the windows style until first resize. The first row has blue background (the color of windows XP title), others tab rows has gray background

David Prévot taffit at moszumanska.debian.org
Fri Mar 25 21:56:14 UTC 2016


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

taffit pushed a commit to tag 0.4.2.3pre.160319a1
in repository tabmixplus.

commit 019d1304504153c062abf9cdfa0372955e81daf9
Author: onemen <tabmix.onemen at gmail.com>
Date:   Thu Mar 10 17:57:41 2016 +0200

    In windows XP, multi-row background is not match the windows style until first resize. The first row has blue background (the color of windows XP title), others tab rows has gray background
---
 chrome/content/tab/tab.js | 10 ++++++++++
 1 file changed, 10 insertions(+)

diff --git a/chrome/content/tab/tab.js b/chrome/content/tab/tab.js
index 372df4a..03c1774 100644
--- a/chrome/content/tab/tab.js
+++ b/chrome/content/tab/tab.js
@@ -290,6 +290,12 @@ var TabmixTabbar = {
 
     if (tabstrip.style.maxHeight != tabstrip.style.height || tabstrip.style.maxHeight != newHeight + "px")
       this.setHeightByPixels(newHeight);
+
+    // fix multi-row background on windows XP
+    if (this.updateAppearanceOnce) {
+      this.updateAppearanceOnce = false;
+      TabsInTitlebar.updateAppearance(true);
+    }
   },
 
   setHeightByPixels: function TMP_setHeightByPixels(newHeight) {
@@ -569,6 +575,10 @@ var TabmixTabbar = {
 
 }; // TabmixTabbar end
 
+XPCOMUtils.defineLazyGetter(TabmixTabbar, "updateAppearanceOnce", function() {
+  return navigator.oscpu.startsWith("Windows NT 5.1");
+});
+
 Tabmix.tabsUtils = {
   initialized: false,
   _tabmixPositionalTabs: {},

-- 
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