Skip to content
Snippets Groups Projects
Commit e0a1248f authored by Prince Gupta's avatar Prince Gupta :speech_balloon: Committed by Jean-Baptiste Kempf
Browse files

qml: fix network thumbnail shadows

parent ee9f5f7b
No related branches found
No related tags found
1 merge request!2408qml: fix network thumbnail shadows
Pipeline #256092 failed with stages
in 38 minutes and 52 seconds
......@@ -44,10 +44,30 @@ Item {
readonly property bool _showCustomCover: (!artworkSource) || (artwork.status != Image.Ready)
readonly property var _shadowRects: [
{
"x": background.x,
"y": background.y,
"width": background.width,
"height": background.height
},
{
"x": artwork.x,
"y": artwork.y,
"width": artwork.paintedWidth,
"height": artwork.paintedHeight
}
]
readonly property var _shadowRect: _shadowRects[_showCustomCover ? 0 : 1]
signal playClicked(int index)
Widgets.ListCoverShadow {
anchors.fill: !item._showCustomCover ? artwork : background
x: _shadowRect.x
y: _shadowRect.y
width: _shadowRect.width
height: _shadowRect.height
}
Rectangle {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment