move stuff into components
This commit is contained in:
parent
6370732e4e
commit
14292e6683
17 changed files with 81 additions and 149 deletions
|
|
@ -1,11 +1,11 @@
|
|||
import QtQuick
|
||||
import Quickshell.Io
|
||||
import QtQuick.Controls
|
||||
import "." as M
|
||||
|
||||
Row {
|
||||
M.BarSection {
|
||||
id: root
|
||||
spacing: 2
|
||||
tooltip: root.freePct + "% free of " + root.totalTb.toFixed(1) + " TB"
|
||||
|
||||
property int freePct: 0
|
||||
property real totalTb: 0
|
||||
|
|
@ -43,9 +43,4 @@ Row {
|
|||
font.family: M.Theme.fontFamily
|
||||
verticalAlignment: Text.AlignVCenter
|
||||
}
|
||||
HoverHandler { id: hover }
|
||||
ToolTip {
|
||||
visible: hover.hovered
|
||||
text: root.freePct + "% free of " + root.totalTb.toFixed(1) + " TB"
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue