diff options
-rw-r--r-- | src/imports/controls/ItemDelegate.qml | 3 | ||||
-rw-r--r-- | src/imports/controls/material/ItemDelegate.qml | 1 | ||||
-rw-r--r-- | src/imports/controls/universal/ItemDelegate.qml | 12 |
3 files changed, 13 insertions, 3 deletions
diff --git a/src/imports/controls/ItemDelegate.qml b/src/imports/controls/ItemDelegate.qml index 5735d0b3..7cfb622a 100644 --- a/src/imports/controls/ItemDelegate.qml +++ b/src/imports/controls/ItemDelegate.qml @@ -82,7 +82,8 @@ T.ItemDelegate { background: Rectangle { implicitWidth: 100 implicitHeight: 40 - color: control.pressed ? "#bdbebf" : "transparent" + visible: control.pressed || control.highlighted + color: control.pressed ? "#bdbebf" : "#eeeeee" } //! [background] } diff --git a/src/imports/controls/material/ItemDelegate.qml b/src/imports/controls/material/ItemDelegate.qml index 73a63397..e6b15467 100644 --- a/src/imports/controls/material/ItemDelegate.qml +++ b/src/imports/controls/material/ItemDelegate.qml @@ -146,6 +146,7 @@ T.ItemDelegate { //! [background] background: Rectangle { + visible: control.pressed || control.highlighted color: control.pressed ? control.Material.flatButtonPressColor : control.Material.backgroundColor } //! [background] diff --git a/src/imports/controls/universal/ItemDelegate.qml b/src/imports/controls/universal/ItemDelegate.qml index d9156177..a5330059 100644 --- a/src/imports/controls/universal/ItemDelegate.qml +++ b/src/imports/controls/universal/ItemDelegate.qml @@ -87,8 +87,16 @@ T.ItemDelegate { //! [background] background: Rectangle { - visible: control.pressed - color: control.Universal.listMediumColor + visible: control.pressed || control.highlighted || control.activeFocus + color: control.pressed ? control.Universal.listMediumColor : control.Universal.altMediumLowColor + Rectangle { + width: parent.width + height: parent.height + visible: control.activeFocus || control.highlighted + color: control.Universal.accentColor + opacity: control.Universal.theme === Universal.Light ? 0.4 : 0.6 + } + } //! [background] } |