From 2018b2063e8e5cd928d88aff37f1b3db91b84b80 Mon Sep 17 00:00:00 2001 From: Piro / YUKI Hiroshi Date: Tue, 29 Sep 2015 04:50:16 +0900 Subject: [PATCH] Apply new size of the tab bar specified at the configuration dialog, for all windows --- content/treestyletab/config.js | 19 +++++++++++++++++++ content/treestyletab/config.xul | 14 ++++++++++++-- defaults/preferences/treestyletab.js | 2 ++ modules/browser.js | 2 ++ 4 files changed, 35 insertions(+), 2 deletions(-) diff --git a/content/treestyletab/config.js b/content/treestyletab/config.js index 47252dc7..db33c8f5 100644 --- a/content/treestyletab/config.js +++ b/content/treestyletab/config.js @@ -110,6 +110,25 @@ function initAppearancePane() }); } +function readOverrideSize(aFieldId) +{ + var field = document.getElementById(aFieldId); + var overrideKey = field.getAttribute('preference'); + var regularKey = overrideKey.replace(/\.override$/, ''); + var regularPref = document.getElementById(regularKey); + return regularPref.value; +} + +function writeOverrideSize(aFieldId) +{ + var field = document.getElementById(aFieldId); + var overrideKey = field.getAttribute('preference'); + var regularKey = overrideKey.replace(/\.override$/, ''); + var regularPref = document.getElementById(regularKey); + regularPref.value = field.value; + return field.value; +} + var gDropLinksOnRadioSet, gGroupBookmarkRadioSet, diff --git a/content/treestyletab/config.xul b/content/treestyletab/config.xul index 39ff9698..c790f848 100644 --- a/content/treestyletab/config.xul +++ b/content/treestyletab/config.xul @@ -27,9 +27,15 @@ + + @@ -116,7 +122,9 @@ control="tabbarSize-horizontal" value="&config.tabbarSize.before-horizontal;"/>