add sourceSize to ThemedIcon and mpris album art to prevent oversized SVG/image decoding
This commit is contained in:
parent
345326c1e3
commit
bc2d54c07a
2 changed files with 3 additions and 0 deletions
|
|
@ -23,6 +23,7 @@ Column {
|
||||||
id: _artImgPrev
|
id: _artImgPrev
|
||||||
anchors.fill: parent
|
anchors.fill: parent
|
||||||
fillMode: Image.PreserveAspectCrop
|
fillMode: Image.PreserveAspectCrop
|
||||||
|
sourceSize: Qt.size(width, height)
|
||||||
asynchronous: true
|
asynchronous: true
|
||||||
opacity: 0
|
opacity: 0
|
||||||
|
|
||||||
|
|
@ -41,6 +42,7 @@ Column {
|
||||||
id: _artImg
|
id: _artImg
|
||||||
anchors.fill: parent
|
anchors.fill: parent
|
||||||
fillMode: Image.PreserveAspectCrop
|
fillMode: Image.PreserveAspectCrop
|
||||||
|
sourceSize: Qt.size(width, height)
|
||||||
asynchronous: true
|
asynchronous: true
|
||||||
opacity: 0
|
opacity: 0
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -7,6 +7,7 @@ Image {
|
||||||
required property color tint
|
required property color tint
|
||||||
|
|
||||||
fillMode: Image.PreserveAspectFit
|
fillMode: Image.PreserveAspectFit
|
||||||
|
sourceSize: Qt.size(width, height)
|
||||||
|
|
||||||
layer.enabled: true
|
layer.enabled: true
|
||||||
layer.effect: MultiEffect {
|
layer.effect: MultiEffect {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue