synchronize localStorage properties to preference profile
This commit is contained in:
parent
c1af8dfb7f
commit
3d3846ec85
6 changed files with 105 additions and 49 deletions
|
|
@ -477,4 +477,32 @@ export const PREF_DEF = {
|
|||
default: true,
|
||||
},
|
||||
//#endregion
|
||||
|
||||
//#region hybrid options
|
||||
// These exist in preferences, but may have a legacy value in local storage.
|
||||
// Some parts of the system may still reference the legacy storage so both need to stay in sync!
|
||||
// Null means "fall back to existing value from localStorage"
|
||||
// For all of these preferences, "null" means fall back to existing value in localStorage.
|
||||
fontSize: {
|
||||
default: null as null | '0' | '1' | '2' | '3',
|
||||
},
|
||||
useSystemFont: {
|
||||
default: null as null | boolean,
|
||||
},
|
||||
cornerRadius: {
|
||||
default: null as null | 'misskey' | 'sharkey',
|
||||
},
|
||||
lang: {
|
||||
default: null as null | string,
|
||||
},
|
||||
customCss: {
|
||||
default: null as null | string,
|
||||
},
|
||||
neverShowDonationInfo: {
|
||||
default: null as null | 'true',
|
||||
},
|
||||
neverShowLocalOnlyInfo: {
|
||||
default: null as null | 'true',
|
||||
},
|
||||
//#endregion
|
||||
} satisfies PreferencesDefinition;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue