Skip to content

Commit

Permalink
notice about Aero style
Browse files Browse the repository at this point in the history
  • Loading branch information
gomita committed Aug 26, 2013
1 parent e7cedad commit 72f43cd
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 1 deletion.
5 changes: 5 additions & 0 deletions chrome/content/tabscope/prefs.js
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,11 @@ var PrefsUI = {
openUILinkIn("http://www.xuldev.org/tabscope/options.php", where);
},

onAeroSelected: function(aText) {
var ps = Cc["@mozilla.org/embedcomp/prompt-service;1"].getService(Ci.nsIPromptService);
ps.alert(window, document.title, aText);
},

};


4 changes: 3 additions & 1 deletion chrome/content/tabscope/prefs.xul
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,9 @@
<menupopup>
<menuitem label="&tabscope.popup_style.flat;" value="" />
<menuitem label="&tabscope.popup_style.dark;" value="dark" />
<menuitem label="Aero Glass" value="aero" disabled="true" />
<menuitem label="Aero Glass" value="aero" disabled="true"
oncommand="PrefsUI.onAeroSelected(this.getAttribute('_notice'));"
_notice="&tabscope.popup_style.aero.notice;" />
</menupopup>
</menulist>
</row>
Expand Down
1 change: 1 addition & 0 deletions chrome/locale/en-US/tabscope/prefs.dtd
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
<!ENTITY tabscope.popup_style "Popup Appearance">
<!ENTITY tabscope.popup_style.flat "Flat">
<!ENTITY tabscope.popup_style.dark "Dark">
<!ENTITY tabscope.popup_style.aero.notice "If you choose 'Aero Glass', '&tabscope.animate_fade;' option is disabled automatically.">
<!ENTITY tabscope.popup_alignment "Alignment of popup">
<!ENTITY tabscope.popup_alignment.auto "auto-detect">
<!ENTITY tabscope.popup_alignment.top "on top of a tab">
Expand Down
1 change: 1 addition & 0 deletions chrome/locale/ja/tabscope/prefs.dtd
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
<!ENTITY tabscope.popup_style "ポップアップのデザイン">
<!ENTITY tabscope.popup_style.flat "フラット">
<!ENTITY tabscope.popup_style.dark "ダーク">
<!ENTITY tabscope.popup_style.aero.notice "「Aero Glass」を選択すると、「&tabscope.animate_fade;」は自動的に無効化されます。">
<!ENTITY tabscope.popup_alignment "ポップアップの表示位置">
<!ENTITY tabscope.popup_alignment.auto "自動で判別">
<!ENTITY tabscope.popup_alignment.top "タブの上側">
Expand Down

0 comments on commit 72f43cd

Please sign in to comment.