move stuff into components

This commit is contained in:
Damocles 2026-04-12 00:56:17 +02:00
parent 6370732e4e
commit 14292e6683
17 changed files with 81 additions and 149 deletions

View file

@ -1,11 +1,11 @@
import QtQuick
import Quickshell.Io
import QtQuick.Controls
import "." as M
Row {
M.BarSection {
id: root
spacing: 4
tooltip: root.status === "connected" ? "Bluetooth: " + root.device : "Bluetooth: on"
property string status: "off"
property string device: ""
@ -42,9 +42,4 @@ Row {
font.family: M.Theme.fontFamily
anchors.verticalCenter: parent.verticalCenter
}
HoverHandler { id: hover }
ToolTip {
visible: hover.hovered
text: root.status === "connected" ? "Bluetooth: " + root.device : "Bluetooth: on"
}
}