[vlc-devel] [PATCH 12/27] qml: fix miniplayer widget stacking

Fatih Uzunoglu fuzun54 at outlook.com
Fri Dec 4 00:01:47 CET 2020


this patch fixes volume tooltip getting placed under the progressbar
---
 modules/gui/qt/player/qml/MiniPlayer.qml | 25 +++++++++++-------------
 1 file changed, 11 insertions(+), 14 deletions(-)

diff --git a/modules/gui/qt/player/qml/MiniPlayer.qml b/modules/gui/qt/player/qml/MiniPlayer.qml
index 977e7ef96a..f717361c4d 100644
--- a/modules/gui/qt/player/qml/MiniPlayer.qml
+++ b/modules/gui/qt/player/qml/MiniPlayer.qml
@@ -63,17 +63,24 @@ Widgets.NavigableFocusScope {
         acceptedButtons: Qt.AllButtons
     }
 
+    Widgets.FrostedGlassEffect {
+        anchors.fill: column
+
+        source: mainContent
+        sourceRect: Qt.rect(root.x, root.y, root.width, root.height)
+
+        tint: VLCStyle.colors.blendColors(VLCStyle.colors.bg, VLCStyle.colors.banner, 0.85)
+    }
+
     Column {
+        id: column
         anchors.left: parent.left
         anchors.right: parent.right
 
-        spacing: VLCStyle.dp(-progressBar.height / 2, VLCStyle.scale)
-
         SliderBar {
             id: progressBar
             value: player.position
             visible: progressBar.value >= 0.0 && progressBar.value <= 1.0
-            z: 1
 
             isMiniplayer: true
 
@@ -86,7 +93,6 @@ Widgets.NavigableFocusScope {
             Keys.onUpPressed: root.navigationUpItem.focus = true
         }
 
-
         Item {
             id: mainRect
 
@@ -94,17 +100,8 @@ Widgets.NavigableFocusScope {
                 left: parent.left
                 right: parent.right
             }
-            z: 0
-            height: VLCStyle.miniPlayerHeight
-
-            Widgets.FrostedGlassEffect {
-                anchors.fill: parent
-
-                source: mainContent
-                sourceRect: Qt.rect(root.x, root.y, root.width, root.height)
 
-                tint: VLCStyle.colors.blendColors(VLCStyle.colors.bg, VLCStyle.colors.banner, 0.85)
-            }
+            height: VLCStyle.miniPlayerHeight
 
             PlayerButtonsLayout {
                 id: buttonsLayout
-- 
2.27.0



More information about the vlc-devel mailing list