[vlc-commits] [Git][videolan/vlc][master] 2 commits: qml: respect the theme when video is not playing in `MinimalView.qml`

Steve Lhomme (@robUx4) gitlab at videolan.org
Mon Apr 7 13:44:52 UTC 2025



Steve Lhomme pushed to branch master at VideoLAN / VLC


Commits:
105616e4 by Fatih Uzunoglu at 2025-04-07T12:55:15+00:00
qml: respect the theme when video is not playing in `MinimalView.qml`

- - - - -
2a65ba26 by Fatih Uzunoglu at 2025-04-07T12:55:15+00:00
qml: use the designated mouse hide timeout in `MinimalView.qml`

- - - - -


1 changed file:

- modules/gui/qt/player/qml/MinimalView.qml


Changes:

=====================================
modules/gui/qt/player/qml/MinimalView.qml
=====================================
@@ -32,6 +32,16 @@ FocusScope {
                             && (!MainCtx.hasEmbededVideo || _csdOnVideo)
     property bool _csdOnVideo: true
 
+    readonly property ColorContext colorContext: ColorContext {
+        id: theme
+
+        palette: (MainCtx.hasEmbededVideo && MainCtx.pinVideoControls === false)
+                 ? VLCStyle.darkPalette
+                 : VLCStyle.palette
+
+        colorSet: ColorContext.Window
+    }
+
     VideoSurface {
         id: videoSurface
 
@@ -60,7 +70,7 @@ FocusScope {
             id: mouseAutoHide
             running: true
             repeat: false
-            interval: 3000
+            interval: MainCtx.mouseHideTimeout
 
             onTriggered: {
                 // Cursor hides when toggleControlBarButton is not visible
@@ -72,23 +82,13 @@ FocusScope {
     }
 
     Rectangle {
-        color: "#000000"
+        color: theme.bg.primary
 
         anchors.fill: parent
 
         visible: !MainCtx.hasEmbededVideo
         focus: visible
 
-        ColorContext {
-            id: theme
-
-            palette: (MainCtx.hasEmbededVideo && MainCtx.pinVideoControls === false)
-                     ? VLCStyle.darkPalette
-                     : VLCStyle.palette
-
-            colorSet: ColorContext.Window
-        }
-
         Image {
             id: logo
 



View it on GitLab: https://code.videolan.org/videolan/vlc/-/compare/28b0d9f9fcfec9d9d09a3d70a60a92d4aa5c0494...2a65ba2683e514cee3fb0ca5dcb305da36b1fa77

-- 
View it on GitLab: https://code.videolan.org/videolan/vlc/-/compare/28b0d9f9fcfec9d9d09a3d70a60a92d4aa5c0494...2a65ba2683e514cee3fb0ca5dcb305da36b1fa77
You're receiving this email because of your account on code.videolan.org.


VideoLAN code repository instance


More information about the vlc-commits mailing list