diff options
Diffstat (limited to 'src/imports/controls/universal/ItemDelegate.qml')
-rw-r--r-- | src/imports/controls/universal/ItemDelegate.qml | 13 |
1 files changed, 11 insertions, 2 deletions
diff --git a/src/imports/controls/universal/ItemDelegate.qml b/src/imports/controls/universal/ItemDelegate.qml index d9156177..d2c9a4f3 100644 --- a/src/imports/controls/universal/ItemDelegate.qml +++ b/src/imports/controls/universal/ItemDelegate.qml @@ -48,6 +48,7 @@ T.ItemDelegate { implicitHeight: Math.max(background ? background.implicitHeight : 0, Math.max(label ? label.implicitHeight : 0, indicator ? indicator.implicitHeight : 0) + topPadding + bottomPadding) + baselineOffset: label ? label.y + label.baselineOffset : 0 spacing: 12 @@ -87,8 +88,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.accent + opacity: control.Universal.theme === Universal.Light ? 0.4 : 0.6 + } + } //! [background] } |