vlc | branch: master | Fatih Uzunoglu <[email protected]> | Fri Jan 8 00:36:23 2021 +0300| [dc8f9ff06faf39e57b6c5775bbdcb1c17b5558fe] | committer: Pierre Lamot
qml: respect theme in OverlayMenu Signed-off-by: Pierre Lamot <[email protected]> > http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=dc8f9ff06faf39e57b6c5775bbdcb1c17b5558fe --- modules/gui/qt/widgets/qml/OverlayMenu.qml | 17 ++++++++++------- 1 file changed, 10 insertions(+), 7 deletions(-) diff --git a/modules/gui/qt/widgets/qml/OverlayMenu.qml b/modules/gui/qt/widgets/qml/OverlayMenu.qml index 6929a4b0a8..09d6fec5da 100644 --- a/modules/gui/qt/widgets/qml/OverlayMenu.qml +++ b/modules/gui/qt/widgets/qml/OverlayMenu.qml @@ -49,6 +49,8 @@ Item { // Example usage can be found in 'Playlist/PlaylistOverlayMenu.qml' file property var model: undefined + property VLCColors colors: VLCStyle.colors + onModelChanged: { listView.currentModel = model listView.resetStack() @@ -118,7 +120,8 @@ Item { readonly property point overlayPos: backgroundItem.mapFromItem(root, parentItem.x, parentItem.y) sourceRect: Qt.rect(overlayPos.x, overlayPos.y, width, height) - tint: VLCStyle.colors.blendColors(VLCStyle.nightColors.black, VLCStyle.nightColors.banner, 0.85) + tintStrength: 0.0 + exclusionStrength: 0.1 } KeyNavigableListView { @@ -171,7 +174,7 @@ Item { font.pixelSize: VLCStyle.fontSize_xlarge text: listView.currentModel.title - color: VLCStyle.nightColors.text + color: colors.text leftPadding: root.leftPadding rightPadding: root.rightPadding @@ -242,7 +245,7 @@ Item { IconLabel { horizontalAlignment: Text.AlignHCenter text: modelData.fontIcon - color: VLCStyle.nightColors.text + color: colors.text } } @@ -251,7 +254,7 @@ Item { ListLabel { horizontalAlignment: Text.AlignHCenter text: "✓" - color: VLCStyle.nightColors.text + color: colors.text } } @@ -274,7 +277,7 @@ Item { font.weight: Font.Normal text: modelData.text - color: VLCStyle.nightColors.text + color: colors.text } ListLabel { @@ -288,13 +291,13 @@ Item { else if (!!modelData.marking) modelData.marking } - color: VLCStyle.nightColors.text + color: colors.text } } background: Rectangle { visible: button.activeFocus - color: VLCStyle.colors.accent + color: colors.accent opacity: 0.8 } } _______________________________________________ vlc-commits mailing list [email protected] https://mailman.videolan.org/listinfo/vlc-commits
