[vlc-commits] qml: set the backgroundColor of actions buttons in ListItem
Abel Tesfaye
git at videolan.org
Wed Aug 21 15:08:56 CEST 2019
vlc | branch: master | Abel Tesfaye <Abeltesfaye45 at gmail.com> | Thu Aug 8 20:38:09 2019 +0300| [ff895a95b0d26ccdba2e22e6448989249e2e6e05] | committer: Jean-Baptiste Kempf
qml: set the backgroundColor 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=ff895a95b0d26ccdba2e22e6448989249e2e6e05
---
modules/gui/qt/qml/utils/ListItem.qml | 3 +++
1 file changed, 3 insertions(+)
diff --git a/modules/gui/qt/qml/utils/ListItem.qml b/modules/gui/qt/qml/utils/ListItem.qml
index 013c5e8cbb..d30ea1dad3 100644
--- a/modules/gui/qt/qml/utils/ListItem.qml
+++ b/modules/gui/qt/qml/utils/ListItem.qml
@@ -195,6 +195,9 @@ NavigableFocusScope {
color: contextButton.activeFocus ? VLCStyle.colors.accent : VLCStyle.colors.text
focus: actionButtons.length == toolButtons.focusIndex
visible: root.showContextButton
+ backgroundColor: hovered || activeFocus ? VLCStyle.colors.getBgColor(
+ root.isSelected, root.hovered,
+ root.activeFocus) : "transparent"
onClicked: root.contextMenuButtonClicked(this)
}
}
More information about the vlc-commits
mailing list