aboutsummaryrefslogtreecommitdiffstats
path: root/desktop/assistant
diff options
context:
space:
mode:
authorDanilo M. <danix@danix.xyz>2026-10-16 16:56:22 +0200
committerDanilo M. <danix@danix.xyz>2026-10-16 16:56:22 +0200
commit2537315f53cb6d0dbc5238245451e85b388ae5c5 (patch)
tree3308b087d1e375bd93384cdd9a1ec942354276a0 /desktop/assistant
parentbb9442a07cebe70c3492cca31f31a8270bb83134 (diff)
downloadquickshell-2537315f53cb6d0dbc5238245451e85b388ae5c5.tar.gz
quickshell-2537315f53cb6d0dbc5238245451e85b388ae5c5.zip
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.
Diffstat (limited to 'desktop/assistant')
-rw-r--r--desktop/assistant/Card.qml6
1 files changed, 4 insertions, 2 deletions
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)