feat: add line height & font size settings for plaintext editor (#1700)

This commit is contained in:
Aman Harwara
2022-09-30 00:50:33 +05:30
committed by GitHub
parent fc86cebc75
commit 3c699eaa4a
12 changed files with 178 additions and 31 deletions

View File

@@ -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
}