aboutsummaryrefslogtreecommitdiffstats
path: root/src/imports/controls/material/MenuItem.qml
diff options
context:
space:
mode:
authorJ-P Nurmi <jpnurmi@qt.io>2016-07-20 14:59:49 +0200
committerJ-P Nurmi <jpnurmi@qt.io>2016-07-20 14:39:18 +0000
commit8291869b51c0afe8763df6f932b4e8fef463371c (patch)
tree87643f2b1ac5ac42db2fa0d78427eb6ce63736f2 /src/imports/controls/material/MenuItem.qml
parent946b1349ffc6450d2484773583cfbda95e9d7771 (diff)
Material: remove double press effect from delegates
The press effect is visualized by the ripple background, so we don't need to adjust the control background color when pressed. Change-Id: Ic3acea4591d59f3045004b7e85a5b5bb9044c9f2 Reviewed-by: Mitch Curtis <mitch.curtis@qt.io>
Diffstat (limited to 'src/imports/controls/material/MenuItem.qml')
-rw-r--r--src/imports/controls/material/MenuItem.qml2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/imports/controls/material/MenuItem.qml b/src/imports/controls/material/MenuItem.qml
index 4f221f2c..e792fae9 100644
--- a/src/imports/controls/material/MenuItem.qml
+++ b/src/imports/controls/material/MenuItem.qml
@@ -77,7 +77,7 @@ T.MenuItem {
background: Rectangle {
implicitWidth: 200
implicitHeight: 48
- color: control.down ? control.Material.buttonPressColor : control.highlighted ? control.Material.listHighlightColor : "transparent"
+ color: control.highlighted ? control.Material.listHighlightColor : "transparent"
Ripple {
width: parent.width