mirror of
https://github.com/status-im/status-desktop.git
synced 2025-01-18 18:44:01 +00:00
fix(images-formats): Remove .heif and .tif(f) from supported formats
Fixes: #13077
This commit is contained in:
parent
e4958adb0e
commit
c89032d0ea
@ -55,7 +55,7 @@ Control {
|
|||||||
\qmlproperty var StatusImageSelector::acceptedImageExtensions.
|
\qmlproperty var StatusImageSelector::acceptedImageExtensions.
|
||||||
This property holds the list of possible image file extensions.
|
This property holds the list of possible image file extensions.
|
||||||
*/
|
*/
|
||||||
property var acceptedImageExtensions: [".png", ".jpg", ".jpeg", ".heif", ".tif", ".tiff"]
|
property var acceptedImageExtensions: [".png", ".jpg", ".jpeg"]
|
||||||
|
|
||||||
/*!
|
/*!
|
||||||
\qmlproperty bool StatusImageSelector::preview.
|
\qmlproperty bool StatusImageSelector::preview.
|
||||||
|
@ -39,7 +39,7 @@ Item {
|
|||||||
|
|
||||||
title: root.imageFileDialogTitle
|
title: root.imageFileDialogTitle
|
||||||
folder: root.userSelectedImage ? imageCropper.source.substr(0, imageCropper.source.lastIndexOf("/")) : shortcuts.pictures
|
folder: root.userSelectedImage ? imageCropper.source.substr(0, imageCropper.source.lastIndexOf("/")) : shortcuts.pictures
|
||||||
nameFilters: [qsTr("Supported image formats (%1)").arg("*.jpg *.jpeg *.jfif *.webp *.png *.heif")]
|
nameFilters: [qsTr("Supported image formats (%1)").arg(Constants.acceptedDragNDropImageExtensions.map(img => "*" + img).join(" "))]
|
||||||
onAccepted: {
|
onAccepted: {
|
||||||
if (fileDialog.fileUrls.length > 0) {
|
if (fileDialog.fileUrls.length > 0) {
|
||||||
cropImage(fileDialog.fileUrls[0])
|
cropImage(fileDialog.fileUrls[0])
|
||||||
|
@ -961,7 +961,7 @@ QtObject {
|
|||||||
readonly property int maxNumberOfPins: 3
|
readonly property int maxNumberOfPins: 3
|
||||||
|
|
||||||
readonly property string dataImagePrefix: "data:image"
|
readonly property string dataImagePrefix: "data:image"
|
||||||
readonly property var acceptedDragNDropImageExtensions: [".png", ".jpg", ".jpeg", ".heif", ".tif", ".tiff"]
|
readonly property var acceptedDragNDropImageExtensions: [".png", ".jpg", ".jpeg"]
|
||||||
|
|
||||||
readonly property string mentionSpanTag: `<span style="background-color: ${Style.current.mentionBgColor};"><a style="color:${Style.current.mentionColor};text-decoration:none" href='http://'>`
|
readonly property string mentionSpanTag: `<span style="background-color: ${Style.current.mentionBgColor};"><a style="color:${Style.current.mentionColor};text-decoration:none" href='http://'>`
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user