[vlc-commits] qml: allow forcing theme for PointingTooltip

Fatih Uzunoglu git at videolan.org
Tue Jan 12 13:20:59 UTC 2021


vlc | branch: master | Fatih Uzunoglu <fuzun54 at outlook.com> | Fri Jan  8 00:37:01 2021 +0300| [746298f7b40879bfe4dbcfd339e8e6ad3216e9c6] | committer: Pierre Lamot

qml: allow forcing theme for PointingTooltip

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

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

 modules/gui/qt/widgets/qml/PointingTooltip.qml | 12 +++++++-----
 1 file changed, 7 insertions(+), 5 deletions(-)

diff --git a/modules/gui/qt/widgets/qml/PointingTooltip.qml b/modules/gui/qt/widgets/qml/PointingTooltip.qml
index b6cd0fbd9e..8eb51920cb 100644
--- a/modules/gui/qt/widgets/qml/PointingTooltip.qml
+++ b/modules/gui/qt/widgets/qml/PointingTooltip.qml
@@ -39,6 +39,8 @@ Item {
     property real xPos: Math.max(Math.min(mouseArea.mouseX, mouseArea.width), 0.0)
     property real yPos: Math.max(Math.min(mouseArea.mouseY, mouseArea.height), 0.0)
 
+    property VLCColors colors: VLCStyle.colors
+
     width: childrenRect.width
     height: childrenRect.height
 
@@ -99,7 +101,7 @@ Item {
 
             property int diff: 0
 
-            color: VLCStyle.colors.bgAlt
+            color: colors.bgAlt
 
             rotation: 45
 
@@ -107,7 +109,7 @@ Item {
                 anchors.fill: parent
                 glowRadius: VLCStyle.dp(2, VLCStyle.scale)
                 spread: 0.2
-                color: VLCStyle.colors.glowColor
+                color: colors.glowColor
             }
         }
     }
@@ -117,7 +119,7 @@ Item {
         width: timeMetrics.width + VLCStyle.dp(10, VLCStyle.scale)
         height: timeMetrics.height + VLCStyle.dp(5, VLCStyle.scale)
 
-        color: VLCStyle.colors.bgAlt
+        color: colors.bgAlt
         radius: VLCStyle.dp(6, VLCStyle.scale)
 
         RectangularGlow {
@@ -127,13 +129,13 @@ Item {
             cornerRadius: parent.radius
             spread: 0.2
 
-            color: VLCStyle.colors.glowColor
+            color: colors.glowColor
         }
 
         Text {
             anchors.fill: parent
             text: timeMetrics.text
-            color: VLCStyle.colors.text
+            color: colors.text
 
             horizontalAlignment: Text.AlignHCenter
             verticalAlignment: Text.AlignVCenter



More information about the vlc-commits mailing list