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,10 +1,10 @@
import QtQuick
import Quickshell.Io
import QtQuick.Controls
import "." as M
M.BarIcon {
id: root
tooltip: "Power profile: " + (root.profile || "unknown")
property string profile: ""
@ -45,9 +45,4 @@ M.BarIcon {
setter.running = true;
}
}
HoverHandler { id: hover }
ToolTip {
visible: hover.hovered
text: "Power profile: " + (root.profile || "unknown")
}
}