move stuff into components
This commit is contained in:
parent
6370732e4e
commit
14292e6683
17 changed files with 81 additions and 149 deletions
|
|
@ -1,10 +1,10 @@
|
|||
import QtQuick
|
||||
import Quickshell.Io
|
||||
import QtQuick.Controls
|
||||
import "." as M
|
||||
|
||||
M.BarIcon {
|
||||
id: root
|
||||
tooltip: "Idle inhibition: " + (root.active ? "active" : "inactive")
|
||||
|
||||
property bool active: false
|
||||
|
||||
|
|
@ -23,9 +23,4 @@ M.BarIcon {
|
|||
toggle.running = true;
|
||||
}
|
||||
}
|
||||
HoverHandler { id: hover }
|
||||
ToolTip {
|
||||
visible: hover.hovered
|
||||
text: "Idle inhibition: " + (root.active ? "active" : "inactive")
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue