qml: further limit miniplayer background effect source

This commit is contained in:
Fatih Uzunoglu 2022-03-15 16:52:22 +02:00 committed by Rémi Denis-Courmont
parent ee68529514
commit 8cccbacd23
2 changed files with 7 additions and 6 deletions

View File

@ -463,7 +463,12 @@ FocusScope {
stackView.forceActiveFocus()
}
effectSource: mainColumn
effectSource: stackView
effectSourceRect: effectSource.mapFromItem(parent,
x,
y,
width,
height)
}
Connections {

View File

@ -34,6 +34,7 @@ FocusScope {
visible: false
property alias effectSource: effect.source
property alias effectSourceRect: effect.sourceRect
state: (Player.playingState === Player.PLAYING_STATE_STOPPED) ? ""
: "expanded"
@ -70,11 +71,6 @@ FocusScope {
id: effect
anchors.fill: parent
sourceRect: Qt.rect(root.x,
root.y,
root.width,
root.height)
tint: VLCStyle.colors.lowerBanner
}