[vlc-devel] [PATCH 06/38] qml: add glow to sliderbar tooltip

Fatih Uzunoglu fuzun54 at outlook.com
Thu Aug 20 19:55:15 CEST 2020


---
 modules/gui/qt/player/qml/SliderBar.qml | 18 ++++++++++++++++++
 1 file changed, 18 insertions(+)

diff --git a/modules/gui/qt/player/qml/SliderBar.qml b/modules/gui/qt/player/qml/SliderBar.qml
index 9a134b27b0..c747b56a9a 100644
--- a/modules/gui/qt/player/qml/SliderBar.qml
+++ b/modules/gui/qt/player/qml/SliderBar.qml
@@ -18,6 +18,7 @@
 import QtQuick 2.11
 import QtQuick.Controls 2.4
 import QtQuick.Layouts 1.3
+import QtGraphicalEffects 1.0
 
 import "qrc:///style/"
 
@@ -69,6 +70,13 @@ Slider {
                 color: VLCStyle.colors.bgAlt
 
                 rotation: 45
+
+                RectangularGlow {
+                    anchors.fill: parent
+                    glowRadius: VLCStyle.dp(2)
+                    spread: 0.2
+                    color: VLCStyle.colors.glowColor
+                }
             }
         }
 
@@ -80,6 +88,16 @@ Slider {
             color: VLCStyle.colors.bgAlt
             radius: VLCStyle.dp(6)
 
+            RectangularGlow {
+                anchors.fill: parent
+
+                glowRadius: VLCStyle.dp(2)
+                cornerRadius: parent.radius
+                spread: 0.2
+
+                color: VLCStyle.colors.glowColor
+            }
+
             Text {
                 anchors.fill: parent
                 text: timeMetrics.text
-- 
2.25.1



More information about the vlc-devel mailing list