[vlc-commits] qml: set the highlightColor of actions buttons in ListItem
Abel Tesfaye
git at videolan.org
Wed Aug 21 15:08:55 CEST 2019
vlc | branch: master | Abel Tesfaye <Abeltesfaye45 at gmail.com> | Thu Aug 8 20:34:00 2019 +0300| [3145b995971e05f3bdcd6506b1c95a74c33d8eaf] | committer: Jean-Baptiste Kempf
qml: set the highlightColor of actions buttons in ListItem
Signed-off-by: Jean-Baptiste Kempf <jb at videolan.org>
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=3145b995971e05f3bdcd6506b1c95a74c33d8eaf
---
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()
}
}
More information about the vlc-commits
mailing list