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,12 +1,12 @@
import QtQuick
import Quickshell.Io
import QtQuick.Controls
import "." as M
Row {
M.BarSection {
id: root
spacing: 4
visible: percent > 0
tooltip: "Brightness: " + root.percent + "%"
property int percent: 0
@ -53,9 +53,4 @@ Row {
WheelHandler {
onWheel: event => root.adjust(event.angleDelta.y)
}
HoverHandler { id: hover }
ToolTip {
visible: hover.hovered
text: "Brightness: " + root.percent + "%"
}
}