From 968b3db730b4073ab449d855d66f48e91a6f3224 Mon Sep 17 00:00:00 2001 From: Benjamin Palko Date: Tue, 29 Jul 2025 23:50:46 -0400 Subject: [PATCH] move bluetooth to widgets and styledbutton --- modules/bar/components/bluetooth/Bluetooth.qml | 15 +++------------ 1 file changed, 3 insertions(+), 12 deletions(-) diff --git a/modules/bar/components/bluetooth/Bluetooth.qml b/modules/bar/components/bluetooth/Bluetooth.qml index b39e7b8..2414f69 100644 --- a/modules/bar/components/bluetooth/Bluetooth.qml +++ b/modules/bar/components/bluetooth/Bluetooth.qml @@ -1,18 +1,15 @@ import qs.config import qs.constants -import qs.styled +import qs.widgets -Clickable { +StyledButton { id: root - implicitWidth: text.width - implicitHeight: Dimensions.bluetooth.height - onClicked: { popup.opened = !popup.opened; } - StyledText { + content: StyledText { id: text font.family: Theme.lucide.font.family @@ -21,12 +18,6 @@ Clickable { text: Icons.bluetooth color: root.containsMouse ? Theme.palette.base300 : Theme.palette.basecontent - - anchors.verticalCenter: parent.verticalCenter - topPadding: Dimensions.bluetooth.verticalPadding - bottomPadding: Dimensions.bluetooth.verticalPadding - leftPadding: Dimensions.bluetooth.horizontalPadding - rightPadding: Dimensions.bluetooth.horizontalPadding } BluetoothMenu {