[vlc-devel] [PATCH 18/29] qml: set the highlightColor of actions buttons in ListItem
Abel Tesfaye
abeltesfaye45 at gmail.com
Tue Aug 20 12:42:35 CEST 2019
From: Abel Tesfaye <Abeltesfaye45 at gmail.com>
---
modules/gui/qt/qml/utils/ListItem.qml | 9 ++++++---
1 file changed, 6 insertions(+), 3 deletions(-)
diff --git a/modules/gui/qt/qml/utils/ListItem.qml b/modules/gui/qt/qml/utils/ListItem.qml
index 8c823bc408..013c5e8cbb 100644
--- a/modules/gui/qt/qml/utils/ListItem.qml
+++ b/modules/gui/qt/qml/utils/ListItem.qml
@@ -50,8 +50,9 @@ NavigableFocusScope {
focus: true
- highlightColor: activeFocus ? VLCStyle.colors.banner : "transparent"
-
+ highlightColor: VLCStyle.colors.getBgColor(
+ root.isSelected, root.hovered,
+ root.activeFocus)
//visible: mouse.containsMouse || root.activeFocus
onClicked: root.addToPlaylistClicked()
}
@@ -68,7 +69,9 @@ NavigableFocusScope {
focus: true
- highlightColor: add_and_play_icon.activeFocus ? VLCStyle.colors.banner : "transparent"
+ highlightColor: VLCStyle.colors.getBgColor(
+ root.isSelected, root.hovered,
+ root.activeFocus)
onClicked: root.playClicked()
}
}
--
2.21.0
More information about the vlc-devel
mailing list