Misc pack editor improvements

This commit is contained in:
Nicolas Werner 2021-12-13 06:18:30 +01:00
parent bb600dd3d1
commit 2974c541c5
No known key found for this signature in database
GPG key ID: C8D75E610773F2D9
3 changed files with 8 additions and 5 deletions

View file

@ -713,12 +713,12 @@
<message>
<location line="+54"/>
<source>Create account pack</source>
<translation>Neue Packung erstellen</translation>
<translation>Neue private Packung</translation>
</message>
<message>
<location line="+12"/>
<source>New room pack</source>
<translation>Neue Packung</translation>
<translation>Neue raumspezifische Packung</translation>
</message>
<message>
<location line="+21"/>

View file

@ -91,7 +91,9 @@ ApplicationWindow {
folder: StandardPaths.writableLocation(StandardPaths.PicturesLocation)
fileMode: FileDialog.OpenFiles
nameFilters: [qsTr("Stickers (*.png *.webp *.gif *.jpg *.jpeg)")]
nameFilters: [qsTr("Images (*.png *.webp *.gif *.jpg *.jpeg)")]
title: qsTr("Select images for pack")
acceptLabel: qsTr("Add to pack")
onAccepted: imagePack.addStickers(files)
}
@ -166,6 +168,7 @@ ApplicationWindow {
folder: StandardPaths.writableLocation(StandardPaths.PicturesLocation)
fileMode: FileDialog.OpenFile
nameFilters: [qsTr("Overview Image (*.png *.webp *.jpg *.jpeg)")]
title: qsTr("Select overview image for pack")
onAccepted: imagePack.setAvatar(file)
}
}

View file

@ -71,7 +71,7 @@ ApplicationWindow {
});
dialog.show();
}
width: packlist.width
width: packlistC.width
visible: !packlist.containsAccountPack
text: qsTr("Create account pack")
}
@ -84,7 +84,7 @@ ApplicationWindow {
});
dialog.show();
}
width: packlist.width
width: packlistC.width
text: qsTr("New room pack")
}