[vlc-devel] [PATCH 09/33] qml: add different background for maxplayer when playing music

Prince Gupta guptaprince8832 at gmail.com
Wed Feb 3 10:56:25 UTC 2021


---
 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
-- 
2.25.1



More information about the vlc-devel mailing list