[vlc-devel] [PATCH 06/33] qml: allow forcing color sceheme in ResumeDialog

Prince Gupta guptaprince8832 at gmail.com
Wed Feb 3 10:56:22 UTC 2021


---
 modules/gui/qt/player/qml/ResumeDialog.qml | 10 ++++++----
 1 file changed, 6 insertions(+), 4 deletions(-)

diff --git a/modules/gui/qt/player/qml/ResumeDialog.qml b/modules/gui/qt/player/qml/ResumeDialog.qml
index 68029e41b7..db108ffbbd 100644
--- a/modules/gui/qt/player/qml/ResumeDialog.qml
+++ b/modules/gui/qt/player/qml/ResumeDialog.qml
@@ -27,6 +27,8 @@ import "qrc:///widgets/" as Widgets
 Widgets.NavigableFocusScope {
     id: resumePanel
 
+    property VLCColors colors: VLCStyle.colors
+
     implicitWidth: layout.implicitWidth
     implicitHeight: layout.implicitHeight
 
@@ -84,7 +86,7 @@ Widgets.NavigableFocusScope {
 
     Rectangle {
         anchors.fill: parent
-        color: VLCStyle.colors.setColorAlpha(VLCStyle.colors.playerBg, 0.8)
+        color: resumePanel.colors.setColorAlpha(resumePanel.colors.playerBg, 0.8)
 
         //drag and dbl click the titlebar in CSD mode
         Loader {
@@ -106,7 +108,7 @@ Widgets.NavigableFocusScope {
                 Layout.preferredHeight: implicitHeight
                 Layout.preferredWidth: implicitWidth
 
-                color: VLCStyle.colors.playerFg
+                color: resumePanel.colors.playerFg
                 font.pixelSize: VLCStyle.fontSize_normal
                 font.bold: true
 
@@ -119,7 +121,7 @@ Widgets.NavigableFocusScope {
                 Layout.preferredWidth: implicitWidth
                 text: i18n.qtr("Continue")
                 font.bold: true
-                color: VLCStyle.colors.playerFg
+                color: resumePanel.colors.playerFg
                 focus: true
                 onClicked: {
                     player.restorePlaybackPos()
@@ -135,7 +137,7 @@ Widgets.NavigableFocusScope {
                 Layout.preferredWidth: implicitWidth
                 text: i18n.qtr("Dismiss")
                 font.bold: true
-                color: VLCStyle.colors.playerFg
+                color: resumePanel.colors.playerFg
                 onClicked: hideResumePanel()
 
                 KeyNavigation.left: continueBtn
-- 
2.25.1



More information about the vlc-devel mailing list