vlc | branch: master | Abel Tesfaye <[email protected]> | 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 <[email protected]>

> 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()
         }
     }

_______________________________________________
vlc-commits mailing list
[email protected]
https://mailman.videolan.org/listinfo/vlc-commits

Reply via email to