feat: Switched editor appearance preferences to be local instead of synced (#2870)

This commit is contained in:
Aman Harwara
2024-04-24 12:24:34 +05:30
committed by GitHub
parent c402b66977
commit 594a6061b2
15 changed files with 120 additions and 73 deletions

View File

@@ -1,9 +1,16 @@
import { EditorFontSize, EditorLineHeight, EditorLineWidth } from '@standardnotes/models'
export enum LocalPrefKey {
ActiveThemes = 'activeThemes',
UseSystemColorScheme = 'useSystemColorScheme',
UseTranslucentUI = 'useTranslucentUI',
AutoLightThemeIdentifier = 'autoLightThemeIdentifier',
AutoDarkThemeIdentifier = 'autoDarkThemeIdentifier',
EditorMonospaceEnabled = 'monospaceFont',
EditorLineHeight = 'editorLineHeight',
EditorLineWidth = 'editorLineWidth',
EditorFontSize = 'editorFontSize',
}
export type LocalPrefValue = {
@@ -12,4 +19,9 @@ export type LocalPrefValue = {
[LocalPrefKey.UseTranslucentUI]: boolean
[LocalPrefKey.AutoLightThemeIdentifier]: string
[LocalPrefKey.AutoDarkThemeIdentifier]: string
[LocalPrefKey.EditorMonospaceEnabled]: boolean
[LocalPrefKey.EditorLineHeight]: EditorLineHeight
[LocalPrefKey.EditorLineWidth]: EditorLineWidth
[LocalPrefKey.EditorFontSize]: EditorFontSize
}