[vlc-commits] qml: set proper miniplayer slider background color

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


vlc | branch: master | Fatih Uzunoglu <fuzun54 at outlook.com> | Mon Aug  3 21:22:25 2020 +0300| [2042d69fa20aed1d9e2d5dab2312e6ebfc141323] | committer: Pierre Lamot

qml: set proper miniplayer slider background color

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

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

 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";
 



More information about the vlc-commits mailing list