[Pkg-mozext-commits] [tabmixplus] 05/19: Move styles that display the proper tab-background to addDynamicRules function that run from onWindowOpen
David Prévot
taffit at moszumanska.debian.org
Tue Aug 29 08:05:12 UTC 2017
This is an automated email from the git hooks/post-receive script.
taffit pushed a commit to branch master
in repository tabmixplus.
commit e18f1d00c688c778476c5d4436adf15e50246894
Author: onemen <tabmix.onemen at gmail.com>
Date: Mon Aug 21 15:17:21 2017 +0300
Move styles that display the proper tab-background to addDynamicRules function that run from onWindowOpen
---
chrome/content/tab/tab.js | 30 ++++++++++++++++--------------
1 file changed, 16 insertions(+), 14 deletions(-)
diff --git a/chrome/content/tab/tab.js b/chrome/content/tab/tab.js
index ad8158c..9ca5467 100644
--- a/chrome/content/tab/tab.js
+++ b/chrome/content/tab/tab.js
@@ -1897,20 +1897,6 @@ gTMPprefObserver = {
height: ${Tabmix._buttonsHeight}px;
}`;
this.insertRule(newRule);
-
- newRule = `.tab-stack > .tab-background > .tab-background-start,
- .tab-stack > .tab-background > .tab-background-middle,
- .tab-stack > .tab-background > .tab-background-end {
- display: none;
- }`;
- this.insertRule(newRule);
- } else if (!Tabmix.isVersion(570)) {
- newRule = `.tab-stack > .tab-background > .tab-line,
- .tab-stack > .tab-background > .tabmix-tab-line-spacer,
- .tab-stack > .tab-background > .tab-bottom-line {
- display: none;
- }`;
- this.insertRule(newRule);
}
newRule = '#tabmixScrollBox[flowing="multibar"] > toolbarbutton {' +
@@ -2023,6 +2009,22 @@ gTMPprefObserver = {
newRule.style.setProperty("padding-bottom", (padding + 1) + "px", "important");
}, true);
}
+
+ if (Tabmix.isVersion(570) && !TabmixSvc.australis) {
+ newRule = `.tab-stack > .tab-background > .tab-background-start,
+ .tab-stack > .tab-background > .tab-background-middle,
+ .tab-stack > .tab-background > .tab-background-end {
+ display: none;
+ }`;
+ this.insertRule(newRule);
+ } else if (!Tabmix.isVersion(570)) {
+ newRule = `.tab-stack > .tab-background > .tab-line,
+ .tab-stack > .tab-background > .tabmix-tab-line-spacer,
+ .tab-stack > .tab-background > .tab-bottom-line {
+ display: none;
+ }`;
+ this.insertRule(newRule);
+ }
},
updateStyleAttributes() {
--
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