mirror of
https://github.com/zotero/zotero.git
synced 2026-08-28 05:25:31 +00:00
Merge 7ca9e78795 into 1d1d32a211
This commit is contained in:
commit
02196a73a5
4 changed files with 28 additions and 2 deletions
|
|
@ -246,6 +246,22 @@
|
|||
preference="extensions.zotero.openNoteInNewWindow"
|
||||
native="true"
|
||||
/>
|
||||
<vbox class="fileHandler-menus">
|
||||
<label data-l10n-id="preferences-note-content-view" control="note-content-view-mode"/>
|
||||
<menulist id="note-content-view-mode" preference="extensions.zotero.note.contentViewMode" native="true">
|
||||
<menupopup>
|
||||
<menuitem data-l10n-id="preferences-note-content-view-wide" value="wide"/>
|
||||
<menuitem data-l10n-id="preferences-note-content-view-comfortable" value="comfortable"/>
|
||||
</menupopup>
|
||||
</menulist>
|
||||
<label data-l10n-id="preferences-note-tab-content-view" control="note-tab-content-view-mode"/>
|
||||
<menulist id="note-tab-content-view-mode" preference="extensions.zotero.note.tabContentViewMode" native="true">
|
||||
<menupopup>
|
||||
<menuitem data-l10n-id="preferences-note-content-view-wide" value="wide"/>
|
||||
<menuitem data-l10n-id="preferences-note-content-view-comfortable" value="comfortable"/>
|
||||
</menupopup>
|
||||
</menulist>
|
||||
</vbox>
|
||||
</groupbox>
|
||||
|
||||
<groupbox id="zotero-prefpane-locate-groupbox" aria-label="&zotero.preferences.prefpane.locate;" aria-describedby="preferences-locate-library-lookup-intro">
|
||||
|
|
|
|||
|
|
@ -103,6 +103,8 @@ class EditorInstance {
|
|||
Zotero.Prefs.registerObserver('note.fontSize', this._handleFontChange),
|
||||
Zotero.Prefs.registerObserver('note.tabFontSize', this._handleFontChange),
|
||||
Zotero.Prefs.registerObserver('note.fontFamily', this._handleFontChange),
|
||||
Zotero.Prefs.registerObserver('note.contentViewMode', this._handleContentViewModeChange),
|
||||
Zotero.Prefs.registerObserver('note.tabContentViewMode', this._handleContentViewModeChange),
|
||||
Zotero.Prefs.registerObserver('note.css', this._handleStyleChange),
|
||||
Zotero.Prefs.registerObserver('layout.spellcheckDefault', this._handleSpellCheckChange, true)
|
||||
];
|
||||
|
|
@ -450,8 +452,8 @@ class EditorInstance {
|
|||
}
|
||||
|
||||
_getContentViewMode() {
|
||||
// TODO: Use prefs
|
||||
return this._tabID ? 'comfortable' : 'wide';
|
||||
let contentViewModePrefKey = this._tabID ? 'note.tabContentViewMode' : 'note.contentViewMode';
|
||||
return Zotero.Prefs.get(contentViewModePrefKey) || 'wide';
|
||||
}
|
||||
|
||||
_handleFontChange = () => {
|
||||
|
|
|
|||
|
|
@ -40,6 +40,12 @@ preferences-read-aloud-highlight-granularity-word =
|
|||
preferences-note-title = Notes
|
||||
preferences-note-open-in-new-window =
|
||||
.label = Open notes in new windows instead of tabs
|
||||
preferences-note-content-view = Note content width
|
||||
preferences-note-tab-content-view = Note tab content width
|
||||
preferences-note-content-view-wide =
|
||||
.label = Full width
|
||||
preferences-note-content-view-comfortable =
|
||||
.label = Readable width
|
||||
|
||||
preferences-color-scheme = Color Scheme:
|
||||
preferences-color-scheme-auto =
|
||||
|
|
|
|||
|
|
@ -213,6 +213,8 @@ pref("extensions.zotero.fileHandler.snapshot", "");
|
|||
pref("extensions.zotero.openReaderInNewWindow", false);
|
||||
|
||||
pref("extensions.zotero.openNoteInNewWindow", false);
|
||||
pref("extensions.zotero.note.contentViewMode", "wide");
|
||||
pref("extensions.zotero.note.tabContentViewMode", "comfortable");
|
||||
|
||||
// File/URL opening executable if launch() fails
|
||||
pref("extensions.zotero.fallbackLauncher.unix", "/usr/bin/xdg-open");
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue