1
0
mirror of https://github.com/laurent22/joplin.git synced 2025-06-12 22:57:38 +02:00

CLI: Made layout configurable (#3069)

This commit is contained in:
Yuvaraj J
2020-05-09 20:42:09 +05:30
committed by GitHub
parent 17d2d6f959
commit 06eb389b21
2 changed files with 44 additions and 3 deletions

View File

@ -629,6 +629,46 @@ class Setting extends BaseModel {
maximum: 300,
step: 10,
},
'layout.folderList.factor': {
value: 1,
type: Setting.TYPE_INT,
section: 'appearance',
public: true,
appTypes: ['cli'],
label: () => _('Notebook list growth factor'),
description: () =>
_('The factor property sets how the item will grow or shrink ' +
'to fit the available space in its container with respect to the other items. ' +
'Thus an item with a factor of 2 will take twice as much space as an item with a factor of 1.' +
'Restart app to see changes.'),
},
'layout.noteList.factor': {
value: 1,
type: Setting.TYPE_INT,
section: 'appearance',
public: true,
appTypes: ['cli'],
label: () => _('Note list growth factor'),
description: () =>
_('The factor property sets how the item will grow or shrink ' +
'to fit the available space in its container with respect to the other items. ' +
'Thus an item with a factor of 2 will take twice as much space as an item with a factor of 1.' +
'Restart app to see changes.'),
},
'layout.note.factor': {
value: 2,
type: Setting.TYPE_INT,
section: 'appearance',
public: true,
appTypes: ['cli'],
label: () => _('Note area growth factor'),
description: () =>
_('The factor property sets how the item will grow or shrink ' +
'to fit the available space in its container with respect to the other items. ' +
'Thus an item with a factor of 2 will take twice as much space as an item with a factor of 1.' +
'Restart app to see changes.'),
},
};
return this.metadata_;