mirror of https://github.com/keeweb/keeweb.git
Add dropdown for titlebar style in general settings
This commit is contained in:
parent
632f0ca31f
commit
b4a5b24ef2
|
@ -330,6 +330,10 @@
|
|||
"setGenFontSizeNormal": "Normal",
|
||||
"setGenFontSizeLarge": "Large",
|
||||
"setGenFontSizeLargest": "Largest",
|
||||
"setGenTitlebarStyle": "Titlebar style (requires restart)",
|
||||
"setGenTitlebarStyleDefault": "Default",
|
||||
"setGenTitlebarStyleHidden": "Hidden",
|
||||
"setGenTitlebarStyleHiddenInset": "Hidden Inset",
|
||||
"setGenShowSubgroups": "Show entries from all subgroups",
|
||||
"setGenTableView": "Entries list table view",
|
||||
"setGenColorfulIcons": "Colorful custom icons in list",
|
||||
|
|
|
@ -19,6 +19,7 @@ const AppSettingsModel = Backbone.Model.extend({
|
|||
minimizeOnClose: false,
|
||||
tableView: false,
|
||||
colorfulIcons: false,
|
||||
titlebarStyle: 0,
|
||||
lockOnMinimize: true,
|
||||
lockOnCopy: false,
|
||||
helpTipCopyShown: false,
|
||||
|
|
|
@ -34,6 +34,7 @@ const SettingsGeneralView = Backbone.View.extend({
|
|||
'change .settings__general-lock-on-copy': 'changeLockOnCopy',
|
||||
'change .settings__general-table-view': 'changeTableView',
|
||||
'change .settings__general-colorful-icons': 'changeColorfulIcons',
|
||||
'change .settings__general-titlebar-style': 'changeTitlebarStyle',
|
||||
'click .settings__general-update-btn': 'checkUpdate',
|
||||
'click .settings__general-restart-btn': 'restartApp',
|
||||
'click .settings__general-download-update-btn': 'downloadUpdate',
|
||||
|
@ -113,6 +114,7 @@ const SettingsGeneralView = Backbone.View.extend({
|
|||
updateManual: updateManual,
|
||||
releaseNotesLink: Links.ReleaseNotes,
|
||||
colorfulIcons: AppSettingsModel.instance.get('colorfulIcons'),
|
||||
titlebarStyle: AppSettingsModel.instance.get('titlebarStyle'),
|
||||
storageProviders: storageProviders
|
||||
});
|
||||
this.renderProviderViews(storageProviders);
|
||||
|
@ -209,6 +211,11 @@ const SettingsGeneralView = Backbone.View.extend({
|
|||
AppSettingsModel.instance.set('fontSize', fontSize);
|
||||
},
|
||||
|
||||
changeTitlebarStyle: function(e) {
|
||||
const titlebarStyle = +e.target.value;
|
||||
AppSettingsModel.instance.set('titlebarStyle', titlebarStyle);
|
||||
},
|
||||
|
||||
changeClipboard: function(e) {
|
||||
const clipboardSeconds = +e.target.value;
|
||||
AppSettingsModel.instance.set('clipboardSeconds', clipboardSeconds);
|
||||
|
|
|
@ -78,6 +78,14 @@
|
|||
<input type="checkbox" class="settings__input input-base settings__general-colorful-icons" id="settings__general-colorful-icons" {{#if colorfulIcons}}checked{{/if}} />
|
||||
<label for="settings__general-colorful-icons">{{res 'setGenColorfulIcons'}}</label>
|
||||
</div>
|
||||
<div>
|
||||
<label for="settings__general-titlebar-style">{{res 'setGenTitlebarStyle'}}:</label>
|
||||
<select class="settings__general-titlebar-style settings__select input-base" id="settings__general-titlebar-style">
|
||||
<option value="0" {{#ifeq titlebarStyle 0}}selected{{/ifeq}}>{{res 'setGenTitlebarStyleDefault'}}</option>
|
||||
<option value="1" {{#ifeq titlebarStyle 1}}selected{{/ifeq}}>{{res 'setGenTitlebarStyleHidden'}}</option>
|
||||
<option value="2" {{#ifeq titlebarStyle 2}}selected{{/ifeq}}>{{res 'setGenTitlebarStyleHiddenInset'}}</option>
|
||||
</select>
|
||||
</div>
|
||||
|
||||
<h2>{{res 'setGenFunction'}}</h2>
|
||||
<div>
|
||||
|
|
Loading…
Reference in New Issue