fix gif crap again
This commit is contained in:
parent
03af1da1d4
commit
eea2693c6a
|
@ -66,6 +66,7 @@ Rectangle {
|
||||||
sourceSize.width: parent.width
|
sourceSize.width: parent.width
|
||||||
sourceSize.height: parent.height
|
sourceSize.height: parent.height
|
||||||
fillMode: Image.PreserveAspectCrop
|
fillMode: Image.PreserveAspectCrop
|
||||||
|
animatedFillMode: AnimatedImage.PreserveAspectCrop
|
||||||
animate: false
|
animate: false
|
||||||
radius: parent.radius
|
radius: parent.radius
|
||||||
|
|
||||||
|
@ -92,6 +93,7 @@ Rectangle {
|
||||||
contentItem: HMxcImage {
|
contentItem: HMxcImage {
|
||||||
id: avatarToolTipImage
|
id: avatarToolTipImage
|
||||||
fillMode: Image.PreserveAspectCrop
|
fillMode: Image.PreserveAspectCrop
|
||||||
|
animatedFillMode: AnimatedImage.PreserveAspectCrop
|
||||||
mxc: avatarImage.mxc
|
mxc: avatarImage.mxc
|
||||||
title: avatarImage.title
|
title: avatarImage.title
|
||||||
|
|
||||||
|
|
|
@ -12,6 +12,8 @@ Image {
|
||||||
property bool animated:
|
property bool animated:
|
||||||
utils.urlExtension(image.source).toLowerCase() === "gif"
|
utils.urlExtension(image.source).toLowerCase() === "gif"
|
||||||
|
|
||||||
|
property int animatedFillMode: AnimatedImage.PreserveAspectFit
|
||||||
|
|
||||||
property alias radius: roundMask.radius
|
property alias radius: roundMask.radius
|
||||||
property alias showProgressBar: progressBarLoader.active
|
property alias showProgressBar: progressBarLoader.active
|
||||||
|
|
||||||
|
@ -40,7 +42,7 @@ Image {
|
||||||
source: image.source
|
source: image.source
|
||||||
autoTransform: image.autoTransform
|
autoTransform: image.autoTransform
|
||||||
asynchronous: image.asynchronous
|
asynchronous: image.asynchronous
|
||||||
fillMode: image.fillMode
|
fillMode: image.animatedFillMode
|
||||||
|
|
||||||
mirror: image.mirror
|
mirror: image.mirror
|
||||||
mipmap: image.mipmap
|
mipmap: image.mipmap
|
||||||
|
@ -58,6 +60,11 @@ Image {
|
||||||
|
|
||||||
// Hack to make the non-animated image behind this one
|
// Hack to make the non-animated image behind this one
|
||||||
// basically invisible
|
// basically invisible
|
||||||
|
Binding {
|
||||||
|
target: image
|
||||||
|
property: "fillMode"
|
||||||
|
value: Image.Pad
|
||||||
|
}
|
||||||
Binding {
|
Binding {
|
||||||
target: image
|
target: image
|
||||||
property: "sourceSize.width"
|
property: "sourceSize.width"
|
||||||
|
|
|
@ -54,7 +54,6 @@ HColumnPopup {
|
||||||
property int updateCounter: 0
|
property int updateCounter: 0
|
||||||
|
|
||||||
source: "image://clipboard/" + updateCounter
|
source: "image://clipboard/" + updateCounter
|
||||||
fillMode: Image.PreserveAspectFit
|
|
||||||
sourceSize.width: popup.contentWidthLimit
|
sourceSize.width: popup.contentWidthLimit
|
||||||
|
|
||||||
Layout.fillWidth: true
|
Layout.fillWidth: true
|
||||||
|
|
|
@ -49,7 +49,6 @@ HColumnPopup {
|
||||||
|
|
||||||
HImage {
|
HImage {
|
||||||
source: popup.filePath
|
source: popup.filePath
|
||||||
fillMode: Image.PreserveAspectFit
|
|
||||||
visible: status !== Image.Error
|
visible: status !== Image.Error
|
||||||
sourceSize.width: popup.contentWidthLimit
|
sourceSize.width: popup.contentWidthLimit
|
||||||
|
|
||||||
|
|
|
@ -116,6 +116,7 @@ Item {
|
||||||
id: image
|
id: image
|
||||||
visible: Boolean(Qt.resolvedUrl(source))
|
visible: Boolean(Qt.resolvedUrl(source))
|
||||||
fillMode: Image.PreserveAspectCrop
|
fillMode: Image.PreserveAspectCrop
|
||||||
|
animatedFillMode: AnimatedImage.PreserveAspectCrop
|
||||||
source: theme.ui.image
|
source: theme.ui.image
|
||||||
sourceSize.width: Screen.width
|
sourceSize.width: Screen.width
|
||||||
sourceSize.height: Screen.height
|
sourceSize.height: Screen.height
|
||||||
|
|
Loading…
Reference in New Issue
Block a user