From 2537315f53cb6d0dbc5238245451e85b388ae5c5 Mon Sep 17 00:00:00 2001 From: "Danilo M." Date: Fri, 16 Oct 2026 16:56:22 +0200 Subject: fix(assistant): lit tile opaque over the glow The Do tile's hover and press fills were Qt.alpha colours, and the Glow sits beneath the tile (z: -1), so the translucent fill let it wash out the icon and the label. Qt.tint over Theme.surface keeps the fill opaque, so the glow reads as a glow around a solid tile rather than through it. --- desktop/assistant/Card.qml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'desktop') diff --git a/desktop/assistant/Card.qml b/desktop/assistant/Card.qml index f4dc71d..150e483 100644 --- a/desktop/assistant/Card.qml +++ b/desktop/assistant/Card.qml @@ -216,8 +216,10 @@ Rectangle { implicitHeight: 62 radius: 8 opacity: on ? 1 : 0.4 - color: area.pressed && on ? Qt.alpha(Theme.accent, 0.35) - : area.containsMouse && on ? Qt.alpha(Theme.accent, 0.18) + // Opaque when lit: the glow sits beneath the tile, and a translucent + // fill let it wash out the icon and the label. + color: area.pressed && on ? Qt.tint(Theme.surface, Qt.alpha(Theme.accent, 0.35)) + : area.containsMouse && on ? Qt.tint(Theme.surface, Qt.alpha(Theme.accent, 0.18)) : Qt.alpha(Theme.surface, 0.8) border.width: 1 border.color: Qt.alpha(Theme.text, 0.12) -- cgit v1.2.3