vlc | branch: master | Prince Gupta <[email protected]> | Fri Jan 8 22:26:55 2021 +0530| [f5b144457369a0da3bc64692e8356e1e958fbbe8] | committer: Pierre Lamot
qml: allow forcing color scheme in TopBar widget Signed-off-by: Pierre Lamot <[email protected]> > http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=f5b144457369a0da3bc64692e8356e1e958fbbe8 --- modules/gui/qt/player/qml/TopBar.qml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/modules/gui/qt/player/qml/TopBar.qml b/modules/gui/qt/player/qml/TopBar.qml index 979a3e7f3e..3d5fce5ca7 100644 --- a/modules/gui/qt/player/qml/TopBar.qml +++ b/modules/gui/qt/player/qml/TopBar.qml @@ -39,6 +39,7 @@ Widgets.NavigableFocusScope{ property bool lockAutoHide: false property alias title: titleText.text + property VLCColors colors: VLCStyle.nightColors Keys.priority: Keys.AfterItem Keys.onPressed: defaultKeyAction(event, 0) @@ -100,7 +101,7 @@ Widgets.NavigableFocusScope{ size: VLCStyle.icon_normal iconText: VLCIcons.topbar_previous text: i18n.qtr("Back") - color: VLCStyle.colors.playerFg + color: topFocusScope.colors.playerFg onClicked: { if (mainInterface.hasEmbededVideo && !mainInterface.canShowVideoPIP) { mainPlaylistController.stop() @@ -127,7 +128,7 @@ Widgets.NavigableFocusScope{ width: rowLayout.width - anchors.leftMargin horizontalAlignment: Text.AlignLeft - color: VLCStyle.colors.playerFg + color: topFocusScope.colors.playerFg font.pixelSize: VLCStyle.fontSize_xxlarge font.weight: Font.DemiBold textFormat: Text.PlainText _______________________________________________ vlc-commits mailing list [email protected] https://mailman.videolan.org/listinfo/vlc-commits
