[vlc-devel] [PATCH 21/38] qml: set proper miniplayer slider background color

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


---
 modules/gui/qt/player/qml/SliderBar.qml | 2 +-
 modules/gui/qt/style/VLCColors.qml      | 2 ++
 2 files changed, 3 insertions(+), 1 deletion(-)

diff --git a/modules/gui/qt/player/qml/SliderBar.qml b/modules/gui/qt/player/qml/SliderBar.qml
index e3bee2d559..fea3ed26b3 100644
--- a/modules/gui/qt/player/qml/SliderBar.qml
+++ b/modules/gui/qt/player/qml/SliderBar.qml
@@ -168,7 +168,7 @@ Slider {
         width: control.availableWidth
         implicitHeight: control.implicitHeight
         height: implicitHeight
-        color:  VLCStyle.colors.setColorAlpha( VLCStyle.colors.playerFg, 0.7 )
+        color:  isMiniplayer ? (VLCStyle.colors.sliderBarMiniplayerBgColor) : VLCStyle.colors.setColorAlpha( VLCStyle.colors.playerFg, 0.7 )
         radius: implicitHeight
 
         MouseArea {
diff --git a/modules/gui/qt/style/VLCColors.qml b/modules/gui/qt/style/VLCColors.qml
index 000bf243b8..a10628e543 100644
--- a/modules/gui/qt/style/VLCColors.qml
+++ b/modules/gui/qt/style/VLCColors.qml
@@ -96,6 +96,8 @@ Item {
     property color glowColor: setColorAlpha(blendColors(bg, black, 0.8), 0.35)
     property color glowColorBanner: setColorAlpha(blendColors(banner, black, isThemeDark ? 0.25 : 0.35), 0.25)
 
+    property color sliderBarMiniplayerBgColor: isThemeDark ? "#FF929292" : "#FFEEEEEE"
+
     //vlc orange
     property color accent: "#FFFF950D";
 
-- 
2.25.1



More information about the vlc-devel mailing list