[vlc-devel] [PATCH 04/33] qml: allow forcing color scheme in TopBar widget
Prince Gupta
guptaprince8832 at gmail.com
Wed Feb 3 10:56:20 UTC 2021
---
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
--
2.25.1
More information about the vlc-devel
mailing list