[vlc-commits] qml: unify in context buttons with other actions buttons in ListItem

Pierre Lamot git at videolan.org
Mon Oct 14 11:59:05 CEST 2019


vlc | branch: master | Pierre Lamot <pierre at videolabs.io> | Wed Sep 18 10:01:43 2019 +0200| [e186a3041ef7d0add1c9b1da3b32af9fde6fc972] | committer: Jean-Baptiste Kempf

qml: unify in context buttons with other 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=e186a3041ef7d0add1c9b1da3b32af9fde6fc972
---

 modules/gui/qt/qml/utils/ListItem.qml | 15 +++++++++------
 1 file changed, 9 insertions(+), 6 deletions(-)

diff --git a/modules/gui/qt/qml/utils/ListItem.qml b/modules/gui/qt/qml/utils/ListItem.qml
index e2bebdc680..10648bac9d 100644
--- a/modules/gui/qt/qml/utils/ListItem.qml
+++ b/modules/gui/qt/qml/utils/ListItem.qml
@@ -190,14 +190,17 @@ NavigableFocusScope {
                             focus: index === toolButtons.focusIndex
                         }
                         }                        
-                        Utils.ContextButton{
+                        IconToolButton {
                             id: contextButton
-                            color: contextButton.activeFocus ? VLCStyle.colors.accent : VLCStyle.colors.text
-                            focus: actionButtons.length == toolButtons.focusIndex
+                            size: VLCStyle.icon_normal
+                            text: VLCIcons.ellipsis
+
                             visible: root.showContextButton
-                            backgroundColor: hovered || activeFocus ? VLCStyle.colors.getBgColor(
-                                                 root.isSelected, root.hovered,
-                                                 root.activeFocus) : "transparent"
+                            focus: actionButtons.length == toolButtons.focusIndex
+
+                            highlightColor: VLCStyle.colors.getBgColor(
+                                                root.isSelected, root.hovered,
+                                                root.activeFocus)
                             onClicked: root.contextMenuButtonClicked(this)
                         }
                     }



More information about the vlc-commits mailing list