add sourceSize to ThemedIcon and mpris album art to prevent oversized SVG/image decoding

This commit is contained in:
Damocles 2026-04-29 18:08:33 +02:00
parent 345326c1e3
commit bc2d54c07a
2 changed files with 3 additions and 0 deletions

View file

@ -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

View file

@ -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 {