summary refs log tree commit diff
path: root/resources
diff options
context:
space:
mode:
authorNicolas Werner <nicolas.werner@hotmail.de>2021-08-29 17:22:49 +0200
committerNicolas Werner <nicolas.werner@hotmail.de>2021-08-29 17:22:49 +0200
commit374ad0a816c039dff3daf54a8d77139350bddaab (patch)
tree0c146c82c91691a22374aa19e200638433894174 /resources
parentAdd option to only play animated images on hover (diff)
downloadnheko-374ad0a816c039dff3daf54a8d77139350bddaab.tar.xz
Small image pack editor improvements
- add missing mimetype
- allow removal of images from pack
- allow GIF as a format
- don't divide size by 2 if the image is very small already
Diffstat (limited to 'resources')
-rw-r--r--resources/qml/dialogs/ImagePackEditorDialog.qml17
1 files changed, 16 insertions, 1 deletions
diff --git a/resources/qml/dialogs/ImagePackEditorDialog.qml b/resources/qml/dialogs/ImagePackEditorDialog.qml

index 103f19a9..dda2c1ad 100644 --- a/resources/qml/dialogs/ImagePackEditorDialog.qml +++ b/resources/qml/dialogs/ImagePackEditorDialog.qml
@@ -90,7 +90,7 @@ ApplicationWindow { folder: StandardPaths.writableLocation(StandardPaths.PicturesLocation) fileMode: FileDialog.OpenFiles - nameFilters: [qsTr("Stickers (*.png *.webp)")] + nameFilters: [qsTr("Stickers (*.png *.webp *.gif)")] onAccepted: imagePack.addStickers(files) } @@ -265,6 +265,21 @@ ApplicationWindow { Layout.alignment: Qt.AlignRight } + MatrixText { + text: qsTr("Remove from pack") + } + + Button { + text: qsTr("Remove") + onClicked: { + let temp = currentImageIndex; + currentImageIndex = -1; + imagePack.remove(temp); + } + Layout.alignment: Qt.AlignRight + } + + Item { Layout.columnSpan: 2 Layout.fillHeight: true