Add ripple to completer

This commit is contained in:
Joseph Donofry 2021-01-11 20:22:40 -05:00
parent 9a604d3821
commit 9be466754e
No known key found for this signature in database
GPG key ID: E8A1D78EF044B0CB

View file

@ -1,3 +1,4 @@
import "./ui"
import QtQuick 2.9
import QtQuick.Controls 2.3
import QtQuick.Layouts 1.2
@ -79,10 +80,18 @@ Popup {
implicitWidth: chooser.childrenRect.width + 4
MouseArea {
id: mouseArea
anchors.fill: parent
hoverEnabled: true
onEntered: popup.currentIndex = model.index
onClicked: popup.completionClicked(completer.completionAt(model.index))
Ripple {
rippleTarget: mouseArea
color: Qt.rgba(colors.base.r, colors.base.g, colors.base.b, 0.5)
}
}
DelegateChooser {