mirror of
https://github.com/AvengeMedia/DankMaterialShell.git
synced 2026-04-04 21:02:06 -04:00
animations/ripple: clean up effect and apply more universally
This commit is contained in:
@@ -313,6 +313,12 @@ Popup {
|
||||
}
|
||||
}
|
||||
|
||||
DankRipple {
|
||||
id: menuItemRipple
|
||||
rippleColor: modelData.dangerous ? Theme.error : Theme.surfaceText
|
||||
cornerRadius: menuItem.radius
|
||||
}
|
||||
|
||||
MouseArea {
|
||||
id: menuItemArea
|
||||
anchors.fill: parent
|
||||
@@ -323,6 +329,7 @@ Popup {
|
||||
keyboardNavigation = false;
|
||||
selectedIndex = index;
|
||||
}
|
||||
onPressed: mouse => menuItemRipple.trigger(mouse.x, mouse.y)
|
||||
onClicked: modelData.action()
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user