feat: add line height & font size settings for plaintext editor (#1700)
This commit is contained in:
@@ -9,6 +9,8 @@ export enum PrefKey {
|
||||
EditorMonospaceEnabled = 'monospaceFont',
|
||||
EditorSpellcheck = 'spellcheck',
|
||||
EditorResizersEnabled = 'marginResizersEnabled',
|
||||
EditorLineHeight = 'editorLineHeight',
|
||||
EditorFontSize = 'editorFontSize',
|
||||
SortNotesBy = 'sortBy',
|
||||
SortNotesReverse = 'sortReverse',
|
||||
NotesShowArchived = 'showArchived',
|
||||
@@ -43,6 +45,23 @@ export enum NewNoteTitleFormat {
|
||||
Empty = 'Empty',
|
||||
}
|
||||
|
||||
export enum EditorLineHeight {
|
||||
None = 'None',
|
||||
Tight = 'Tight',
|
||||
Snug = 'Snug',
|
||||
Normal = 'Normal',
|
||||
Relaxed = 'Relaxed',
|
||||
Loose = 'Loose',
|
||||
}
|
||||
|
||||
export enum EditorFontSize {
|
||||
ExtraSmall = 'ExtraSmall',
|
||||
Small = 'Small',
|
||||
Normal = 'Normal',
|
||||
Medium = 'Medium',
|
||||
Large = 'Large',
|
||||
}
|
||||
|
||||
export type PrefValue = {
|
||||
[PrefKey.TagsPanelWidth]: number
|
||||
[PrefKey.NotesPanelWidth]: number
|
||||
@@ -76,4 +95,6 @@ export type PrefValue = {
|
||||
[PrefKey.MobileNotesHideEditorIcon]: boolean
|
||||
[PrefKey.NewNoteTitleFormat]: NewNoteTitleFormat
|
||||
[PrefKey.CustomNoteTitleFormat]: string
|
||||
[PrefKey.EditorLineHeight]: EditorLineHeight
|
||||
[PrefKey.EditorFontSize]: EditorFontSize
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user