From 3779974cb24cdf68ba785e89907c0e017a29f07f Mon Sep 17 00:00:00 2001 From: tux Date: Sun, 23 Aug 2026 12:59:00 +0530 Subject: [PATCH] refactor(system-tray): replace rectangle with barbutton --- modules/bar/SystemTrayWidget.qml | 14 +++++--------- 1 file changed, 5 insertions(+), 9 deletions(-) diff --git a/modules/bar/SystemTrayWidget.qml b/modules/bar/SystemTrayWidget.qml index 31f27c0..2befefc 100644 --- a/modules/bar/SystemTrayWidget.qml +++ b/modules/bar/SystemTrayWidget.qml @@ -3,22 +3,18 @@ pragma ComponentBehavior: Bound import QtQuick import Quickshell.Services.SystemTray import qs.config +import qs.ui -Rectangle { +BarButton { id: root property int iconSize: 16 - implicitWidth: trayRow.implicitWidth + 10 - implicitHeight: 34 - radius: Appearance.radius - color: Appearance.colors.inActive + hoverHighlight: false + pointerCursor: false visible: SystemTray.items.values.length > 0 - Row { - id: trayRow - - anchors.centerIn: parent + contentItem: Row { spacing: Appearance.spacing Repeater {