Add demo artwork

This commit is contained in:
Keavon Chambers
2023-08-22 03:26:59 -07:00
parent 0e97a256b7
commit 0dcfafbf64
33 changed files with 2133 additions and 1050 deletions

View File

@@ -40,14 +40,6 @@
let tabElements: (LayoutRow | undefined)[] = [];
function newDocument() {
editor.instance.newDocumentDialog();
}
function openDocument() {
editor.instance.documentOpen();
}
function platformModifiers(reservedKey: boolean): LayoutKeysGroup {
// TODO: Remove this by properly feeding these keys from a layout provided by the backend
@@ -128,7 +120,7 @@
<table>
<tr>
<td>
<TextButton label="New Document" icon="File" action={() => newDocument()} />
<TextButton label="New Document" icon="File" action={() => editor.instance.newDocumentDialog()} />
</td>
<td>
<UserInputLabel keysWithLabelsGroups={[[...platformModifiers(true), { key: "KeyN", label: "N" }]]} />
@@ -136,12 +128,17 @@
</tr>
<tr>
<td>
<TextButton label="Open Document" icon="Folder" action={() => openDocument()} />
<TextButton label="Open Document" icon="Folder" action={() => editor.instance.openDocument()} />
</td>
<td>
<UserInputLabel keysWithLabelsGroups={[[...platformModifiers(false), { key: "KeyO", label: "O" }]]} />
</td>
</tr>
<tr>
<td colspan="2">
<TextButton label="Open Demo Artwork" icon="Image" action={() => editor.instance.demoArtworkDialog()} />
</td>
</tr>
</table>
</LayoutRow>
</LayoutCol>