mirror of
https://github.com/Nheko-Reborn/nheko.git
synced 2024-11-22 11:00:48 +03:00
Add ripple to completer
This commit is contained in:
parent
9a604d3821
commit
9be466754e
1 changed files with 9 additions and 0 deletions
|
@ -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 {
|
||||
|
|
Loading…
Reference in a new issue