Skip to content

Commit

Permalink
Apply UI font size change immediately
Browse files Browse the repository at this point in the history
And change "Changes take effect in new windows" to "Changes take effect
after restart"

(The note font size still requires a restart, as do the shortcut keys in
the Advaned pane.)
  • Loading branch information
dstillman committed Dec 22, 2016
1 parent bd943ff commit bd95012
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 3 deletions.
4 changes: 2 additions & 2 deletions chrome/content/zotero/preferences/preferences_general.xul
Expand Up @@ -100,12 +100,12 @@
<menuitem label="96"/>
</menupopup>
</menulist>

<label class="statusLine" value="&zotero.preferences.keys.changesTakeEffect;"/>
</hbox>
</row>
</rows>
</grid>

<label class="statusLine" value="&zotero.preferences.keys.changesTakeEffect;"/>
</groupbox>

<groupbox id="zotero-prefpane-miscellaneous-groupbox">
Expand Down
5 changes: 5 additions & 0 deletions chrome/content/zotero/xpcom/zotero.js
Expand Up @@ -2035,6 +2035,11 @@ Zotero.Prefs = new function(){
Zotero.Schema.stopRepositoryTimer();
}
}],
["fontSize", function (val) {
Zotero.setFontSize(
Zotero.getActiveZoteroPane().document.getElementById('zotero-pane')
);
}],
[ "layout", function(val) {
Zotero.getActiveZoteroPane().updateLayout();
}],
Expand Down
2 changes: 1 addition & 1 deletion chrome/locale/en-US/zotero/preferences.dtd
Expand Up @@ -147,7 +147,7 @@
<!ENTITY zotero.preferences.keys.copySelectedItemCitationsToClipboard "Copy Selected Item Citations to Clipboard">
<!ENTITY zotero.preferences.keys.copySelectedItemsToClipboard "Copy Selected Items to Clipboard">
<!ENTITY zotero.preferences.keys.importFromClipboard "Import from Clipboard">
<!ENTITY zotero.preferences.keys.changesTakeEffect "Changes take effect in new windows only">
<!ENTITY zotero.preferences.keys.changesTakeEffect "Changes take effect after restart">

<!ENTITY zotero.preferences.prefpane.proxies "Proxies">

Expand Down
3 changes: 3 additions & 0 deletions chrome/skin/default/zotero/preferences.css
Expand Up @@ -78,6 +78,9 @@ grid row hbox:first-child
margin-right: 20px;
}

#zotero-prefpane-general .statusLine {
margin-left: .75em;
}

/*
* Sync pane
Expand Down

0 comments on commit bd95012

Please sign in to comment.