Commit eaa5f94c authored by Filip Fila's avatar Filip Fila 🌆

[Lock, login & logout screen] Add visual feedback to action buttons when pressed

Summary: The action buttons were missing a visual indication of when they were being pressed so this patch adds it by drawing another an animated rectangle when the button is pressed.

Test Plan: {F6819154}

Reviewers: #vdg, #plasma, ngraham, davidedmundson

Reviewed By: #vdg, #plasma, ngraham, davidedmundson

Subscribers: broulik, abetts, plasma-devel

Tags: #plasma

Differential Revision:
parent 74000622
......@@ -65,6 +65,22 @@ Item {
Rectangle {
anchors.centerIn: iconCircle
width: iconCircle.width
height: width
radius: width / 2
scale: mouseArea.containsPress ? 1 : 0
color: PlasmaCore.ColorScope.textColor
opacity: 0.15
Behavior on scale {
PropertyAnimation {
duration: units.shortDuration
easing.type: Easing.InOutQuart
PlasmaCore.IconItem {
id: icon
anchors {
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment