Set auto dark mode by default, add pref control
This commit is contained in:
parent
5c337808ab
commit
c3d45a8a29
3 changed files with 31 additions and 11 deletions
|
@ -197,16 +197,25 @@
|
|||
</groupbox>
|
||||
|
||||
<groupbox>
|
||||
<label><html:h2>&zotero.preferences.interface;</html:h2></label>
|
||||
|
||||
<hbox align="center">
|
||||
<label value="&zotero.bibliography.locale.label;"/>
|
||||
<menulist id="locale-menu"
|
||||
onblur="if (!Zotero.isMac) Zotero_Preferences.General.onLocaleChange()"
|
||||
native="true">
|
||||
<menupopup onpopuphidden="Zotero_Preferences.General.onLocaleChange()"/>
|
||||
</menulist>
|
||||
</hbox>
|
||||
</groupbox>
|
||||
<label><html:h2>&zotero.preferences.interface;</html:h2></label>
|
||||
|
||||
<hbox align="center">
|
||||
<label data-l10n-id="preferences-color-scheme"/>
|
||||
<radiogroup orient="horizontal" id="color-scheme" preference="browser.theme.toolbar-theme">
|
||||
<radio data-l10n-id="preferences-color-scheme-auto" value="2"/>
|
||||
<radio data-l10n-id="preferences-color-scheme-light" value="1"/>
|
||||
<radio data-l10n-id="preferences-color-scheme-dark" value="0"/>
|
||||
</radiogroup>
|
||||
</hbox>
|
||||
|
||||
<hbox align="center">
|
||||
<label value="&zotero.bibliography.locale.label;"/>
|
||||
<menulist id="locale-menu"
|
||||
onblur="if (!Zotero.isMac) Zotero_Preferences.General.onLocaleChange()"
|
||||
native="true">
|
||||
<menupopup onpopuphidden="Zotero_Preferences.General.onLocaleChange()"/>
|
||||
</menulist>
|
||||
</hbox>
|
||||
</groupbox>
|
||||
|
||||
</vbox>
|
||||
|
|
|
@ -24,3 +24,11 @@ preferences-reader-open-snapshots-using = Open snapshots using
|
|||
preferences-reader-open-in-new-window =
|
||||
.label = Open files in new windows instead of tabs
|
||||
preferences-reader-ebook-font = Ebook font:
|
||||
|
||||
preferences-color-scheme = Color Scheme:
|
||||
preferences-color-scheme-auto =
|
||||
.label = Automatic
|
||||
preferences-color-scheme-light =
|
||||
.label = Light
|
||||
preferences-color-scheme-dark =
|
||||
.label = Dark
|
||||
|
|
|
@ -217,3 +217,6 @@ pref("extensions.zotero.tabs.title.reader", "titleCreatorYear");
|
|||
|
||||
// Reader
|
||||
pref("extensions.zotero.reader.ebookFontFamily", "Georgia, serif");
|
||||
|
||||
// Set color scheme to auto by default
|
||||
pref("browser.theme.toolbar-theme", 2);
|
||||
|
|
Loading…
Reference in a new issue