From b2ff92a023994b64c35338a5c52bbf088ebb4da5 Mon Sep 17 00:00:00 2001 From: oonuma ryouyu Date: Sat, 16 Jul 2016 06:43:58 -0700 Subject: [PATCH 1/2] fix #1145 for rebase skin color --- modules/window.js | 7 +++++++ skin/classic/treestyletab/base-colors.css | 2 +- skin/classic/treestyletab/square/base.css | 2 +- 3 files changed, 9 insertions(+), 2 deletions(-) diff --git a/modules/window.js b/modules/window.js index 20e822a6..ec47fe46 100644 --- a/modules/window.js +++ b/modules/window.js @@ -95,6 +95,13 @@ function TreeStyleTabWindow(aWindow) aWindow.TreeStyleTabService = this; XPCOMUtils.defineLazyModuleGetter(aWindow, 'TreeStyleTabBrowser', 'resource://treestyletab-modules/browser.js'); + + var DevEdition=this.window.AppConstants.MOZ_DEV_EDITION; + if (DevEdition) { + var rootelem=this.document.documentElement; + rootelem.setAttribute('treestyletab-devedition', true); + } + } TreeStyleTabWindow.prototype = inherit(TreeStyleTabBase, { diff --git a/skin/classic/treestyletab/base-colors.css b/skin/classic/treestyletab/base-colors.css index fbfb9ffe..c2d071ee 100644 --- a/skin/classic/treestyletab/base-colors.css +++ b/skin/classic/treestyletab/base-colors.css @@ -44,7 +44,7 @@ --tst-tab-dropmarker: -moz-dialogtext; } -:root[devtoolstheme="dark"] { +:root[devtoolstheme="dark"][treestyletab-devedition="true"] { --tst-tab-surface: #39424D; --tst-tab-text: white; --tst-tab-border: #5f6670; diff --git a/skin/classic/treestyletab/square/base.css b/skin/classic/treestyletab/square/base.css index 3f6dff9a..489364f1 100644 --- a/skin/classic/treestyletab/square/base.css +++ b/skin/classic/treestyletab/square/base.css @@ -15,7 +15,7 @@ --tst-tabbar-bg: darkgray; } -:root[devtoolstheme="dark"] { +:root[devtoolstheme="dark"][treestyletab-devedition="true"] { --tst-tab-highlighted-base: ThreeDHighlight; --tst-tab-highlighted-highlight: Highlight; --tst-tab-side-border: #39424D; From 5f7a874d3ca832dc77302bf8f0d5c2ad8d220239 Mon Sep 17 00:00:00 2001 From: oonuma ryouyu Date: Sat, 16 Jul 2016 06:49:29 -0700 Subject: [PATCH 2/2] add spase for readable code --- modules/window.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/window.js b/modules/window.js index ec47fe46..7bb34fb1 100644 --- a/modules/window.js +++ b/modules/window.js @@ -96,9 +96,9 @@ function TreeStyleTabWindow(aWindow) XPCOMUtils.defineLazyModuleGetter(aWindow, 'TreeStyleTabBrowser', 'resource://treestyletab-modules/browser.js'); - var DevEdition=this.window.AppConstants.MOZ_DEV_EDITION; + var DevEdition = this.window.AppConstants.MOZ_DEV_EDITION; if (DevEdition) { - var rootelem=this.document.documentElement; + var rootelem = this.document.documentElement; rootelem.setAttribute('treestyletab-devedition', true); }