diff options
author | Nicolas Werner <nicolas.werner@hotmail.de> | 2021-08-06 04:31:30 +0200 |
---|---|---|
committer | Nicolas Werner <nicolas.werner@hotmail.de> | 2021-08-06 04:31:53 +0200 |
commit | e5a6b2b6efcb56072146aad5996132070f9c2078 (patch) | |
tree | 7d3385d3dd5cf0dea9152538fa59c03693d9b932 /resources/qml/dialogs/ImagePackSettingsDialog.qml | |
parent | Allow uploading additional stickers (diff) | |
download | nheko-e5a6b2b6efcb56072146aad5996132070f9c2078.tar.xz |
Allow creating new packs
Diffstat (limited to 'resources/qml/dialogs/ImagePackSettingsDialog.qml')
-rw-r--r-- | resources/qml/dialogs/ImagePackSettingsDialog.qml | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/resources/qml/dialogs/ImagePackSettingsDialog.qml b/resources/qml/dialogs/ImagePackSettingsDialog.qml index c57867fd..5181619c 100644 --- a/resources/qml/dialogs/ImagePackSettingsDialog.qml +++ b/resources/qml/dialogs/ImagePackSettingsDialog.qml @@ -62,6 +62,34 @@ ApplicationWindow { enabled: !Settings.mobileMode } + footer: ColumnLayout { + Button { + palette: Nheko.colors + onClicked: { + var dialog = packEditor.createObject(timelineRoot, { + "imagePack": packlist.newPack(false) + }); + dialog.show(); + } + width: packlist.width + visible: !packlist.containsAccountPack + text: qsTr("Create account pack") + } + + Button { + palette: Nheko.colors + onClicked: { + var dialog = packEditor.createObject(timelineRoot, { + "imagePack": packlist.newPack(true) + }); + dialog.show(); + } + width: packlist.width + text: qsTr("New room pack") + } + + } + delegate: AvatarListTile { id: packItem |