vlc | branch: master | Prince Gupta <[email protected]> | Fri Jan 8 23:27:41 2021 +0530| [27b3c477087ca547ebc611603864df6de8f46b5f] | committer: Pierre Lamot
qml: add different background for maxplayer when playing music Signed-off-by: Pierre Lamot <[email protected]> > http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=27b3c477087ca547ebc611603864df6de8f46b5f --- modules/gui/qt/player/qml/Player.qml | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) diff --git a/modules/gui/qt/player/qml/Player.qml b/modules/gui/qt/player/qml/Player.qml index 62f421019f..f5f8aa53bb 100644 --- a/modules/gui/qt/player/qml/Player.qml +++ b/modules/gui/qt/player/qml/Player.qml @@ -212,6 +212,7 @@ Widgets.NavigableFocusScope { edge: Widgets.DrawerExt.Edges.Top state: topcontrolView.state width: parent.width + visible: rootPlayer.hasEmbededVideo height: VLCStyle.dp(206, VLCStyle.scale) component: Rectangle { width: rootPlayer.width @@ -228,6 +229,7 @@ Widgets.NavigableFocusScope { z: 1 anchors.bottom: parent.bottom width: parent.width + visible: rootPlayer.hasEmbededVideo edge: Widgets.DrawerExt.Edges.Bottom state: topcontrolView.state height: VLCStyle.dp(206, VLCStyle.scale) @@ -461,6 +463,28 @@ Widgets.NavigableFocusScope { height: controllerId.implicitHeight + controllerId.anchors.bottomMargin property alias autoHide: controllerId.autoHide + Item { + anchors.fill: parent + anchors.topMargin: rootPlayer.positionSliderY - controlBarView.y + visible: !rootPlayer.hasEmbededVideo + + Rectangle { + id: controlBarBackground + + anchors.fill: parent + color: rootPlayer.colors.playerBg + visible: false + } + + GaussianBlur { + anchors.fill: parent + source: controlBarBackground + radius: 22 + samples: 46 + opacity: .7 + } + } + MouseArea { id: controllerMouseArea hoverEnabled: true _______________________________________________ vlc-commits mailing list [email protected] https://mailman.videolan.org/listinfo/vlc-commits
