vlc | branch: master | Prince Gupta <guptaprince8...@gmail.com> | Fri Jan 29 17:54:28 2021 +0530| [3d84b6e3984700a6dfd74fc4c0f1792f0822101a] | committer: Pierre Lamot
qml: allow forcing color scheme in ResumeDialog Signed-off-by: Pierre Lamot <pie...@videolabs.io> > http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=3d84b6e3984700a6dfd74fc4c0f1792f0822101a --- 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 _______________________________________________ vlc-commits mailing list vlc-commits@videolan.org https://mailman.videolan.org/listinfo/vlc-commits