summary refs log tree commit diff
path: root/resources/qml/Completer.qml
diff options
context:
space:
mode:
authorJoseph Donofry <joedonofry@gmail.com>2021-01-11 20:22:40 -0500
committerJoseph Donofry <joedonofry@gmail.com>2021-01-11 20:22:40 -0500
commit9be466754e6333951539be3823bf0ba9568fbb8d (patch)
tree6a7bf8c8bf6e449785804d303f790b05fa6d0162 /resources/qml/Completer.qml
parentClean up Avatar click event handling (diff)
downloadnheko-9be466754e6333951539be3823bf0ba9568fbb8d.tar.xz
Add ripple to completer
Diffstat (limited to 'resources/qml/Completer.qml')
-rw-r--r--resources/qml/Completer.qml9
1 files changed, 9 insertions, 0 deletions
diff --git a/resources/qml/Completer.qml b/resources/qml/Completer.qml
index 4e8f78aa..ff342be5 100644
--- a/resources/qml/Completer.qml
+++ b/resources/qml/Completer.qml
@@ -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 {