Skip to main content

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?​

optional brushes?: BrushPreset[]

Defined in: src/lib/settings/schema.ts:58

The user's own and imported brush presets


colours?​

optional colours?: object

Defined in: src/lib/settings/schema.ts:54

The foreground and background colours, as #rrggbb

background​

background: string

foreground​

foreground: string


input?​

optional input?: Partial<InputSettingsData>

Defined in: src/lib/settings/schema.ts:43

How input devices control the canvas


palette?​

optional palette?: 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?​

optional palettes?: ColourPalette[]

Defined in: src/lib/settings/schema.ts:52

The user's own colour palettes


profiles?​

optional profiles?: ProfileGraph[]

Defined in: src/lib/settings/schema.ts:56

The user's own profile graphs


shortcuts?​

optional shortcuts?: 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?​

optional ui?: Partial<UiSettingsData>

Defined in: src/lib/settings/schema.ts:60

The theme, language and where canvases draw


updatedAt?​

optional updatedAt?: 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.