MediaCard: fix visualizer clipping

This commit is contained in:
lysec
2025-10-07 19:22:44 +02:00
parent e60fb32c30
commit ca007ddbd8
+14 -16
View File
@@ -46,7 +46,20 @@ NBox {
Item {
id: visualizerContainer
anchors.fill: parent
visible: true
layer.enabled: true
layer.effect: MultiEffect {
maskEnabled: true
maskThresholdMin: 0.5
maskSpreadAtMin: 0.0
maskSource: ShaderEffectSource {
sourceItem: Rectangle {
width: root.width
height: root.height
radius: Style.radiusM * scaling
color: "white"
}
}
}
Loader {
anchors.fill: parent
@@ -97,21 +110,6 @@ NBox {
}
}
MultiEffect {
anchors.fill: parent
source: visualizerContainer
maskEnabled: true
maskSource: Item {
width: root.width
height: root.height
Rectangle {
anchors.fill: parent
radius: Style.radiusM * scaling
color: "white"
}
}
}
// Player selector - positioned at the very top
Rectangle {
id: playerSelectorButton