[vlc-commits] qml: add glow to sliderbar tooltip

Fatih Uzunoglu git at videolan.org
Thu Aug 27 12:44:34 CEST 2020


vlc | branch: master | Fatih Uzunoglu <fuzun54 at outlook.com> | Mon Jul 27 19:59:49 2020 +0300| [ec361d8badf4d38ef899fe7fabc703ebce6539bf] | committer: Pierre Lamot

qml: add glow to sliderbar tooltip

Signed-off-by: Pierre Lamot <pierre at videolabs.io>

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=ec361d8badf4d38ef899fe7fabc703ebce6539bf
---

 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



More information about the vlc-commits mailing list