summary refs log tree commit diff
path: root/resources/qml/ImageButton.qml
diff options
context:
space:
mode:
authorJoseph Donofry <joedonofry@gmail.com>2021-01-11 17:50:26 -0500
committerJoseph Donofry <joedonofry@gmail.com>2021-01-11 17:50:26 -0500
commit1bc2db4bdfe93694452e1a7c129f82294dab8c00 (patch)
tree36ae4d01e6e95a9ba4ad5009549ac2930ba7d2d4 /resources/qml/ImageButton.qml
parentMerge branch 'ci-cleanups-and-experiments' into 'master' (diff)
downloadnheko-1bc2db4bdfe93694452e1a7c129f82294dab8c00.tar.xz
Add Ripple effects to qml buttons and avatar
Diffstat (limited to 'resources/qml/ImageButton.qml')
-rw-r--r--resources/qml/ImageButton.qml7
1 files changed, 7 insertions, 0 deletions
diff --git a/resources/qml/ImageButton.qml b/resources/qml/ImageButton.qml

index 4ebda680..b5a34b7b 100644 --- a/resources/qml/ImageButton.qml +++ b/resources/qml/ImageButton.qml
@@ -1,3 +1,4 @@ +import "./ui" import QtQuick 2.3 import QtQuick.Controls 2.3 @@ -28,4 +29,10 @@ AbstractButton { cursorShape: Qt.PointingHandCursor } + Ripple { + color: Qt.rgba(buttonTextColor.r, buttonTextColor.g, buttonTextColor.b, 0.5) + clip: false + rippleTarget: button + } + }