[vlc-commits] qml: add CSD decorations to ResumeDialog

Prince Gupta git at videolan.org
Mon Mar 15 10:33:11 UTC 2021


vlc | branch: master | Prince Gupta <guptaprince8832 at gmail.com> | Wed Mar 10 21:06:02 2021 +0530| [79b4f5290d921557151e013945f478458e16b88a] | committer: Pierre Lamot

qml: add CSD decorations to ResumeDialog

ResumeDialog hides TopBar so need to provide placeholder CSD decorations

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

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

 modules/gui/qt/player/qml/ResumeDialog.qml | 15 +++++++++++++++
 1 file changed, 15 insertions(+)

diff --git a/modules/gui/qt/player/qml/ResumeDialog.qml b/modules/gui/qt/player/qml/ResumeDialog.qml
index 07f73eb921..a44b4b9a51 100644
--- a/modules/gui/qt/player/qml/ResumeDialog.qml
+++ b/modules/gui/qt/player/qml/ResumeDialog.qml
@@ -144,6 +144,21 @@ Widgets.NavigableFocusScope {
             Item {
                 Layout.fillWidth: true
             }
+
+            Loader {
+                id: csdDecorations
+
+                focus: false
+                height: VLCStyle.icon_normal
+                active: mainInterface.clientSideDecoration
+                enabled: mainInterface.clientSideDecoration
+                visible: mainInterface.clientSideDecoration
+                source: "qrc:///widgets/CSDWindowButtonSet.qml"
+                onLoaded: {
+                    item.color = Qt.binding(function() { return resumePanel.colors.playerFg })
+                    item.hoverColor = Qt.binding(function() { return resumePanel.colors.windowCSDButtonDarkBg })
+                }
+            }
         }
     }
 }



More information about the vlc-commits mailing list