From 1bc2db4bdfe93694452e1a7c129f82294dab8c00 Mon Sep 17 00:00:00 2001 From: Joseph Donofry Date: Mon, 11 Jan 2021 17:50:26 -0500 Subject: Add Ripple effects to qml buttons and avatar --- resources/qml/ImageButton.qml | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'resources/qml/ImageButton.qml') 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 + } + } -- cgit 1.5.1