[vlc-devel] [PATCH 09/49] qml: unify in context buttons with other actions buttons in ListItem

Pierre Lamot pierre at videolabs.io
Fri Oct 11 15:17:33 CEST 2019


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



More information about the vlc-devel mailing list