From d1261f6586ab5d91e81c04ca0f586e35ee6fb8a6 Mon Sep 17 00:00:00 2001 From: Gregor Kleen Date: Wed, 10 Sep 2025 16:26:09 +0200 Subject: ... --- .../gkleen@sif/shell/quickshell/SystemTray.qml | 28 +++++++++++++++------- 1 file changed, 19 insertions(+), 9 deletions(-) (limited to 'accounts/gkleen@sif/shell/quickshell/SystemTray.qml') diff --git a/accounts/gkleen@sif/shell/quickshell/SystemTray.qml b/accounts/gkleen@sif/shell/quickshell/SystemTray.qml index 956f3995..6f70be29 100644 --- a/accounts/gkleen@sif/shell/quickshell/SystemTray.qml +++ b/accounts/gkleen@sif/shell/quickshell/SystemTray.qml @@ -47,7 +47,7 @@ Item { return "" } - width: 16 + width: icon.width + 6 height: parent.height anchors.verticalCenter: parent.verticalCenter @@ -83,14 +83,24 @@ Item { } } - IconImage { - anchors.centerIn: parent - width: parent.width - height: parent.width - source: trayItemWrapper.iconSource - asynchronous: true - smooth: true - mipmap: true + Rectangle { + anchors.fill: parent + color: { + if (trayItemArea.containsMouse) + return "#33808080"; + return "transparent"; + } + + IconImage { + id: icon + + anchors.centerIn: parent + implicitSize: 16 + source: trayItemWrapper.iconSource + asynchronous: true + smooth: true + mipmap: true + } } } -- cgit v1.2.3