com.lvl99.paintcanvas.settings
A user's PaintCanvas app settings. Settings that aren't set use PaintCanvas's defaults.
Details · record, key literal:self
| Kind | record |
|---|---|
| Record key | literal:self |
| Authority | paintcanvas.lvl99.com |
| Commit rev | 3n2bepf75bm2o |
| Indexed |
Checks
Valid Lint pass{
"$type": "com.atproto.lexicon.schema",
"defs": {
"colours": {
"description": "The colours being drawn with, as \"#rrggbb\".",
"properties": {
"background": {
"maxLength": 7,
"type": "string"
},
"foreground": {
"maxLength": 7,
"type": "string"
}
},
"required": [
"foreground",
"background"
],
"type": "object"
},
"gesture": {
"properties": {
"action": {
"description": "What it does, e.g. \"undo\".",
"maxLength": 50,
"type": "string"
},
"gesture": {
"description": "The gesture, e.g. \"twoFingerTap\".",
"maxLength": 50,
"type": "string"
}
},
"required": [
"gesture",
"action"
],
"type": "object"
},
"inputSettings": {
"description": "How the user moves around the canvas and draws.",
"properties": {
"focusPen": {
"description": "Only a pen draws; fingers move the canvas.",
"type": "boolean"
},
"gestures": {
"description": "What each touch gesture does.",
"items": {
"ref": "#gesture",
"type": "ref"
},
"maxLength": 20,
"type": "array"
},
"modifierScrollZoom": {
"description": "Scrolling with a modifier key held zooms the canvas.",
"type": "boolean"
},
"penPressure": {
"description": "A pen's pressure varies the brush, for every brush preset (on when not set).",
"type": "boolean"
},
"penTilt": {
"description": "A pen's tilt varies the brush, for every brush preset (off when not set).",
"type": "boolean"
},
"pinchZoom": {
"description": "Pinching zooms the canvas.",
"type": "boolean"
},
"scrollPan": {
"description": "Scrolling pans the canvas.",
"type": "boolean"
}
},
"type": "object"
},
"main": {
"description": "A user's PaintCanvas app settings. Settings that aren't set use PaintCanvas's defaults.",
"key": "literal:self",
"record": {
"properties": {
"colours": {
"ref": "#colours",
"type": "ref"
},
"input": {
"ref": "#inputSettings",
"type": "ref"
},
"shortcuts": {
"description": "Keyboard shortcuts the user changed from PaintCanvas's defaults.",
"items": {
"ref": "#shortcut",
"type": "ref"
},
"maxLength": 200,
"type": "array"
},
"ui": {
"ref": "#uiSettings",
"type": "ref"
},
"updatedAt": {
"description": "When the settings were last changed.",
"format": "datetime",
"type": "string"
}
},
"type": "object"
},
"type": "record"
},
"shortcut": {
"description": "A keyboard shortcut. Without a key, the action has no shortcut.",
"properties": {
"action": {
"description": "The action, e.g. \"undo\".",
"maxLength": 64,
"type": "string"
},
"alt": {
"description": "Alt (Option on macOS) is held.",
"type": "boolean"
},
"cmd": {
"description": "Command (macOS) or Control (Windows, Linux) is held.",
"type": "boolean"
},
"ctrl": {
"description": "Control is held.",
"type": "boolean"
},
"key": {
"description": "The key, e.g. \"z\".",
"maxLength": 32,
"type": "string"
},
"shift": {
"description": "Shift is held.",
"type": "boolean"
}
},
"required": [
"action"
],
"type": "object"
},
"uiSettings": {
"properties": {
"locale": {
"description": "Language of the interface.",
"format": "language",
"type": "string"
},
"rendering": {
"description": "Whether drawing uses the GPU.",
"knownValues": [
"cpu",
"gpu"
],
"maxLength": 20,
"type": "string"
},
"theme": {
"description": "Colour theme; \"system\" follows the device.",
"knownValues": [
"light",
"dark",
"system"
],
"maxLength": 20,
"type": "string"
}
},
"type": "object"
}
},
"description": "A user's PaintCanvas app settings. Settings that aren't set use PaintCanvas's defaults.",
"id": "com.lvl99.paintcanvas.settings",
"lexicon": 1
}