Skip to content

Commit

Permalink
qml: use DynamicShadow in Player.qml
Browse files Browse the repository at this point in the history
  • Loading branch information
fuzun authored and robUx4 committed Oct 11, 2024
1 parent e80f9a2 commit 7b1acdc
Showing 1 changed file with 18 additions and 13 deletions.
31 changes: 18 additions & 13 deletions modules/gui/qt/player/qml/Player.qml
Original file line number Diff line number Diff line change
Expand Up @@ -322,6 +322,24 @@ FocusScope {

readonly property real sizeConstant: 2.7182

Widgets.DynamicShadow {
anchors.centerIn: cover
sourceItem: cover

color: Qt.rgba(0, 0, 0, .18)
yOffset: VLCStyle.dp(24)
blurRadius: VLCStyle.dp(54)
}

Widgets.DynamicShadow {
anchors.centerIn: cover
sourceItem: cover

color: Qt.rgba(0, 0, 0, .22)
yOffset: VLCStyle.dp(5)
blurRadius: VLCStyle.dp(14)
}

Image {
id: cover

Expand Down Expand Up @@ -350,19 +368,6 @@ FocusScope {
if (status === Image.Ready)
backgroundImage.scheduleUpdate()
}

// TODO: Qt >= 6.4 Investigate using MultiEffect.
Widgets.DoubleShadow {
anchors.centerIn: parent
sourceItem: parent

cache: false

primaryVerticalOffset: VLCStyle.dp(24)
primaryBlurRadius: VLCStyle.dp(54)
secondaryVerticalOffset: VLCStyle.dp(5)
secondaryBlurRadius: VLCStyle.dp(14)
}
}
}

Expand Down

0 comments on commit 7b1acdc

Please sign in to comment.