diff options
author | J-P Nurmi <jpnurmi@theqtcompany.com> | 2016-02-15 13:11:15 +0100 |
---|---|---|
committer | J-P Nurmi <jpnurmi@theqtcompany.com> | 2016-02-15 12:54:54 +0000 |
commit | f56ec245eab24d56800a24f5bc06de1de4f87293 (patch) | |
tree | df215a1bbef35ad919ee328483e83a7d7c5c6b61 /src/imports/controls/material/ItemDelegate.qml | |
parent | f066fce2bb2aba6b94b44008877ac8e03b5b1f82 (diff) |
ItemDelegate: make the highlight visible against any background
Use a translucent color for the highlight, so that the exact background
color doesn't matter.
Change-Id: I63348137dedd04aca8110b8f7610506ca003ec87
Task-number: QTBUG-51118
Reviewed-by: Mitch Curtis <mitch.curtis@theqtcompany.com>
Diffstat (limited to 'src/imports/controls/material/ItemDelegate.qml')
-rw-r--r-- | src/imports/controls/material/ItemDelegate.qml | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/imports/controls/material/ItemDelegate.qml b/src/imports/controls/material/ItemDelegate.qml index 8cd53e88..acfbfb98 100644 --- a/src/imports/controls/material/ItemDelegate.qml +++ b/src/imports/controls/material/ItemDelegate.qml @@ -148,7 +148,7 @@ T.ItemDelegate { //! [background] background: Rectangle { visible: control.pressed || control.highlighted - color: control.pressed ? control.Material.flatButtonPressColor : control.Material.backgroundColor + color: control.pressed ? control.Material.flatButtonPressColor : control.Material.listHighlightColor } //! [background] } |