Add font settings
This commit is contained in:
@ -6,6 +6,8 @@ export enum Key {
|
||||
PREFERRED_LOCALE = "app.config.locale",
|
||||
ENABLE_AUTO_LOCK = "app.config.enable_auto_lock",
|
||||
AUTO_LOCK_AFTER = "app.config.auto_lock_after",
|
||||
UI_FONT = "app.config.font.ui",
|
||||
MONOSPACE_FONT = "app.config.font.monospace",
|
||||
}
|
||||
|
||||
interface StoredData {
|
||||
@ -14,6 +16,8 @@ interface StoredData {
|
||||
[Key.PREFERRED_LOCALE]: string
|
||||
[Key.ENABLE_AUTO_LOCK]: boolean
|
||||
[Key.AUTO_LOCK_AFTER]: number
|
||||
[Key.UI_FONT]: string
|
||||
[Key.MONOSPACE_FONT]: string
|
||||
}
|
||||
|
||||
const events = new Map(Object.values(Key).map(key => [key, new Set()])) as {
|
||||
@ -74,3 +78,5 @@ const defaults: typeof set = (key, value) => {
|
||||
defaults(Key.ENABLE_AUTO_LOCK, true)
|
||||
defaults(Key.AUTO_LOCK_AFTER, 180)
|
||||
defaults(Key.RECENTLY_OPENED_VAULTS, [])
|
||||
defaults(Key.UI_FONT, "")
|
||||
defaults(Key.MONOSPACE_FONT, "")
|
||||
|
Reference in New Issue
Block a user