Interface: AppSettings
Defined in: src/lib/settings/schema.ts:41
The user's app settings. Each part is optional, so a file can hold only some of them. Wrapper apps add their own
parts under keys of their own (see SettingsExtension).
Indexable
[
extension:string]:unknown
Parts added by wrapper apps, by their keys
Properties
brushes?
optionalbrushes?:BrushPreset[]
Defined in: src/lib/settings/schema.ts:58
The user's own and imported brush presets
colours?
optionalcolours?:object
Defined in: src/lib/settings/schema.ts:54
The foreground and background colours, as #rrggbb
background
background:
string
foreground
foreground:
string
input?
optionalinput?:Partial<InputSettingsData>
Defined in: src/lib/settings/schema.ts:43
How input devices control the canvas
palette?
optionalpalette?:string[]
Defined in: src/lib/settings/schema.ts:50
Colours saved in PaintCanvas's palette by older versions, as #rrggbb (no longer saved: applying them moves them
to one of the user's palettes, see keepOlderPalette)
palettes?
optionalpalettes?:ColourPalette[]
Defined in: src/lib/settings/schema.ts:52
The user's own colour palettes
profiles?
optionalprofiles?:ProfileGraph[]
Defined in: src/lib/settings/schema.ts:56
The user's own profile graphs
shortcuts?
optionalshortcuts?:Record<string,KeyCombo|null>
Defined in: src/lib/settings/schema.ts:45
Each configurable keyboard shortcut action's key combination, by ID (null when it has none)
ui?
optionalui?:Partial<UiSettingsData>
Defined in: src/lib/settings/schema.ts:60
The theme, language and where canvases draw
updatedAt?
optionalupdatedAt?:string
Defined in: src/lib/settings/schema.ts:65
When the user last changed their settings (ISO 8601 date and time; see SettingsAutosave). Loading them doesn't
change it. Settings from before schema 2.1.0 have none.