From 5acd9d6fa93f836be88b1c75fef81d9251646e98 Mon Sep 17 00:00:00 2001 From: "Danilo M." Date: Sat, 19 Sep 2026 10:08:01 +0200 Subject: feat(desktop): press feedback on the shared buttons The hand-rolled buttons only reacted to hover, so a press gave no visual confirmation until the action's outcome appeared. kdeconnect made this obvious: its row buttons shell out to kdeconnect-cli, and nothing on screen acknowledged the click. Button.qml now fills solid accent while the mouse is held (red for danger), with the label flipped to base for contrast. TransportButton gets the same treatment, and the window-switcher close button lightens on press. Toggles, tiles and tabs are left alone: their own state change is already the feedback. --- window-switcher/WindowCard.qml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'window-switcher') diff --git a/window-switcher/WindowCard.qml b/window-switcher/WindowCard.qml index b86d69d..b671f0f 100644 --- a/window-switcher/WindowCard.qml +++ b/window-switcher/WindowCard.qml @@ -94,7 +94,9 @@ Column { id: closeButton anchors { right: parent.right; top: parent.top; margins: 8 } width: 34; height: 34; radius: 17 - color: closeHover.hovered + color: closeArea.pressed + ? Qt.lighter(Theme.red, 1.25) + : closeHover.hovered ? Theme.red : Qt.rgba(Theme.base.r, Theme.base.g, Theme.base.b, 0.75) @@ -107,6 +109,7 @@ Column { HoverHandler { id: closeHover } MouseArea { + id: closeArea anchors.fill: parent onClicked: card.closeRequested() } -- cgit v1.2.3