タブバーの透明度の設定UIをscaleに

git-svn-id: http://www.cozmixng.org/repos/piro/treestyletab/trunk@4806 599a83e7-65a4-db11-8015-0010dcdd6dc2
This commit is contained in:
piro 2009-07-24 10:09:13 +00:00
parent b8347e24f7
commit 582bdcf2ad
4 changed files with 28 additions and 11 deletions

View File

@ -149,14 +149,18 @@ function onChangeTabbarPosition(aOnChange)
} }
var gAutoHideModeRadio; var gAutoHideModeRadio,
var gAutoHideModeToggle; gAutoHideModeToggle,
gTabbarTransparencyScale,
gTabbarTransparencyLabels;
function initAutoHidePane() function initAutoHidePane()
{ {
gAutoHideModeRadio = document.getElementById('extensions.treestyletab.tabbar.autoHide.mode-radio'); gAutoHideModeRadio = document.getElementById('extensions.treestyletab.tabbar.autoHide.mode-radio');
gAutoHideModeToggle = document.getElementById('extensions.treestyletab.tabbar.autoHide.mode.toggle'); gAutoHideModeToggle = document.getElementById('extensions.treestyletab.tabbar.autoHide.mode.toggle');
gTabbarTransparencyScale = document.getElementById('tabbarTransparency-scale');
gTabbarTransparencyLabels = document.getElementById('tabbarTransparency-labels');
updateAutoHideModeLabel(); updateAutoHideModeLabel();
onTabbarTransparencyScaleChange();
} }
function onChangeAutoHideMode() function onChangeAutoHideMode()
@ -184,6 +188,12 @@ function updateAutoHideModeLabel()
}); });
} }
function onTabbarTransparencyScaleChange()
{
gTabbarTransparencyLabels.selectedIndex = gTabbarTransparencyScale.value;
}
function updateCloseRootBehaviorCheck() function updateCloseRootBehaviorCheck()
{ {
var closeParentBehavior = document.getElementById('extensions.treestyletab.closeParentBehavior-radiogroup').value; var closeParentBehavior = document.getElementById('extensions.treestyletab.closeParentBehavior-radiogroup').value;

View File

@ -555,12 +555,19 @@
</groupbox> </groupbox>
<groupbox orient="vertical"> <groupbox orient="vertical">
<caption label="&config.transparent.style.caption;"/> <caption label="&config.transparent.style.caption;"/>
<radiogroup orient="horizontal" <hbox align="center">
preference="extensions.treestyletab.tabbar.transparent.style"> <scale id="tabbarTransparency-scale"
<radio label="&config.transparent.style.0;" value="0"/> preference="extensions.treestyletab.tabbar.transparent.style"
<radio label="&config.transparent.style.1;" value="1"/> orient="horizontal"
<radio label="&config.transparent.style.2;" value="2"/> min="0"
</radiogroup> max="2"
onchange="onTabbarTransparencyScaleChange()"/>
<deck id="tabbarTransparency-labels">
<label value="&config.transparent.style.0;" control="tabbarTransparency-scale"/>
<label value="&config.transparent.style.1;" control="tabbarTransparency-scale"/>
<label value="&config.transparent.style.2;" control="tabbarTransparency-scale"/>
</deck>
</hbox>
</groupbox> </groupbox>
</vbox> </vbox>

View File

@ -99,7 +99,7 @@
<!ENTITY config.autoShow.feedback.delay.before "Hide after"> <!ENTITY config.autoShow.feedback.delay.before "Hide after">
<!ENTITY config.autoShow.feedback.delay.after "msec."> <!ENTITY config.autoShow.feedback.delay.after "msec.">
<!ENTITY config.transparent.style.caption "Background of tab bar"> <!ENTITY config.transparent.style.caption "Background transparency of tab bar">
<!ENTITY config.transparent.style.0 "Solid"> <!ENTITY config.transparent.style.0 "Solid">
<!ENTITY config.transparent.style.1 "Half-transparent"> <!ENTITY config.transparent.style.1 "Half-transparent">
<!ENTITY config.transparent.style.2 "Transparent"> <!ENTITY config.transparent.style.2 "Transparent">

View File

@ -99,7 +99,7 @@
<!ENTITY config.autoShow.feedback.delay.before ""> <!ENTITY config.autoShow.feedback.delay.before "">
<!ENTITY config.autoShow.feedback.delay.after "ミリ秒後に自動で隠す"> <!ENTITY config.autoShow.feedback.delay.after "ミリ秒後に自動で隠す">
<!ENTITY config.transparent.style.caption "自動で隠す時のタブバーの背景"> <!ENTITY config.transparent.style.caption "自動で隠す時のタブバーの背景の透明度">
<!ENTITY config.transparent.style.0 "透過しない"> <!ENTITY config.transparent.style.0 "透過しない">
<!ENTITY config.transparent.style.1 "半透明"> <!ENTITY config.transparent.style.1 "半透明">
<!ENTITY config.transparent.style.2 "完全な透明"> <!ENTITY config.transparent.style.2 "完全な透明">