feat: Themes and appeareance settings are now local to your device and not synced (#2847)
This commit is contained in:
@@ -27,10 +27,10 @@ export const PrefDefaults = {
|
||||
[PrefKey.NotesHideDate]: false,
|
||||
[PrefKey.NotesHideTags]: false,
|
||||
[PrefKey.NotesHideEditorIcon]: false,
|
||||
[PrefKey.UseSystemColorScheme]: false,
|
||||
[PrefKey.UseTranslucentUI]: true,
|
||||
[PrefKey.AutoLightThemeIdentifier]: 'Default',
|
||||
[PrefKey.AutoDarkThemeIdentifier]: NativeFeatureIdentifier.TYPES.DarkTheme,
|
||||
[PrefKey.DEPRECATED_UseSystemColorScheme]: false,
|
||||
[PrefKey.DEPRECATED_UseTranslucentUI]: true,
|
||||
[PrefKey.DEPRECATED_AutoLightThemeIdentifier]: 'Default',
|
||||
[PrefKey.DEPRECATED_AutoDarkThemeIdentifier]: NativeFeatureIdentifier.TYPES.DarkTheme,
|
||||
[PrefKey.NoteAddToParentFolders]: true,
|
||||
[PrefKey.NewNoteTitleFormat]: NewNoteTitleFormat.CurrentDateAndTime,
|
||||
[PrefKey.CustomNoteTitleFormat]: 'YYYY-MM-DD [at] hh:mm A',
|
||||
@@ -46,7 +46,7 @@ export const PrefDefaults = {
|
||||
[PrefKey.SystemViewPreferences]: {},
|
||||
[PrefKey.AuthenticatorNames]: '',
|
||||
[PrefKey.ComponentPreferences]: {},
|
||||
[PrefKey.ActiveThemes]: [],
|
||||
[PrefKey.DEPRECATED_ActiveThemes]: [],
|
||||
[PrefKey.ActiveComponents]: [],
|
||||
[PrefKey.AlwaysShowSuperToolbar]: true,
|
||||
[PrefKey.AddImportsToTag]: true,
|
||||
|
||||
@@ -28,10 +28,6 @@ export enum PrefKey {
|
||||
NotesHideDate = 'hideDate',
|
||||
NotesHideTags = 'hideTags',
|
||||
NotesHideEditorIcon = 'hideEditorIcon',
|
||||
UseSystemColorScheme = 'useSystemColorScheme',
|
||||
UseTranslucentUI = 'useTranslucentUI',
|
||||
AutoLightThemeIdentifier = 'autoLightThemeIdentifier',
|
||||
AutoDarkThemeIdentifier = 'autoDarkThemeIdentifier',
|
||||
NoteAddToParentFolders = 'noteAddToParentFolders',
|
||||
NewNoteTitleFormat = 'newNoteTitleFormat',
|
||||
CustomNoteTitleFormat = 'customNoteTitleFormat',
|
||||
@@ -47,12 +43,16 @@ export enum PrefKey {
|
||||
AuthenticatorNames = 'authenticatorNames',
|
||||
PaneGesturesEnabled = 'paneGesturesEnabled',
|
||||
ComponentPreferences = 'componentPreferences',
|
||||
ActiveThemes = 'activeThemes',
|
||||
ActiveComponents = 'activeComponents',
|
||||
AlwaysShowSuperToolbar = 'alwaysShowSuperToolbar',
|
||||
AddImportsToTag = 'addImportsToTag',
|
||||
AlwaysCreateNewTagForImports = 'alwaysCreateNewTagForImports',
|
||||
ExistingTagForImports = 'existingTagForImports',
|
||||
DEPRECATED_ActiveThemes = 'activeThemes',
|
||||
DEPRECATED_UseSystemColorScheme = 'useSystemColorScheme',
|
||||
DEPRECATED_UseTranslucentUI = 'useTranslucentUI',
|
||||
DEPRECATED_AutoLightThemeIdentifier = 'autoLightThemeIdentifier',
|
||||
DEPRECATED_AutoDarkThemeIdentifier = 'autoDarkThemeIdentifier',
|
||||
}
|
||||
|
||||
export type PrefValue = {
|
||||
@@ -73,10 +73,11 @@ export type PrefValue = {
|
||||
[PrefKey.NotesHideDate]: boolean
|
||||
[PrefKey.NotesHideTags]: boolean
|
||||
[PrefKey.NotesHideEditorIcon]: boolean
|
||||
[PrefKey.UseSystemColorScheme]: boolean
|
||||
[PrefKey.UseTranslucentUI]: boolean
|
||||
[PrefKey.AutoLightThemeIdentifier]: string
|
||||
[PrefKey.AutoDarkThemeIdentifier]: string
|
||||
[PrefKey.DEPRECATED_ActiveThemes]: string[]
|
||||
[PrefKey.DEPRECATED_UseSystemColorScheme]: boolean
|
||||
[PrefKey.DEPRECATED_UseTranslucentUI]: boolean
|
||||
[PrefKey.DEPRECATED_AutoLightThemeIdentifier]: string
|
||||
[PrefKey.DEPRECATED_AutoDarkThemeIdentifier]: string
|
||||
[PrefKey.NoteAddToParentFolders]: boolean
|
||||
[PrefKey.NewNoteTitleFormat]: NewNoteTitleFormat
|
||||
[PrefKey.CustomNoteTitleFormat]: string
|
||||
@@ -95,7 +96,6 @@ export type PrefValue = {
|
||||
[PrefKey.AuthenticatorNames]: string
|
||||
[PrefKey.PaneGesturesEnabled]: boolean
|
||||
[PrefKey.ComponentPreferences]: AllComponentPreferences
|
||||
[PrefKey.ActiveThemes]: string[]
|
||||
[PrefKey.ActiveComponents]: string[]
|
||||
[PrefKey.AlwaysShowSuperToolbar]: boolean
|
||||
[PrefKey.AddImportsToTag]: boolean
|
||||
|
||||
Reference in New Issue
Block a user