mirror of
https://github.com/status-im/status-desktop.git
synced 2025-01-22 04:21:44 +00:00
feat: set profile and community image cropper to 1:1 ratio
This commit is contained in:
parent
07d36cc9f6
commit
44c9f480c2
@ -244,6 +244,7 @@ ModalPopup {
|
||||
ImageCropperModal {
|
||||
id: imageCropperModal
|
||||
selectedImage: popup.selectedImage
|
||||
ratio: "1:1"
|
||||
onCropFinished: {
|
||||
imageDimensions.aX = aX
|
||||
imageDimensions.aY = aY
|
||||
|
@ -58,6 +58,7 @@ ModalPopup {
|
||||
id: cropImageModal
|
||||
|
||||
selectedImage: popup.selectedImage
|
||||
ratio: "1:1"
|
||||
onCropFinished: {
|
||||
uploadError = profileModel.uploadNewProfilePic(selectedImage, aX, aY, bX, bY)
|
||||
}
|
||||
|
@ -6,6 +6,7 @@ import "./status"
|
||||
|
||||
ModalPopup {
|
||||
property string selectedImage
|
||||
property string ratio
|
||||
signal cropFinished(aX: int, aY: int, bX: int, bY: int)
|
||||
|
||||
id: cropImageModal
|
||||
@ -27,6 +28,7 @@ ModalPopup {
|
||||
x: image.x
|
||||
y: image.y
|
||||
image: image
|
||||
ratio: cropImageModal.ratio
|
||||
}
|
||||
|
||||
footer: StatusButton {
|
||||
|
Loading…
x
Reference in New Issue
Block a user