31 lines
881 B
QML
31 lines
881 B
QML
import QtQuick
|
|
import QtQuick.Shapes
|
|
import Quickshell.Hyprland
|
|
|
|
Row {
|
|
Repeater {
|
|
model: 9
|
|
delegate: Shape {
|
|
height: 14
|
|
width: 24
|
|
property var workspace: Hyprland.workspaces.values.find(ws => ws.id === modelData)
|
|
preferredRendererType: Shape.CurveRenderer
|
|
anchors.verticalCenter: parent.verticalCenter
|
|
ShapePath {
|
|
strokeWidth: workspace ? 12 : 4
|
|
strokeColor: "white"
|
|
fillColor: "transparent"
|
|
PathAngleArc {
|
|
moveToStart: true
|
|
centerX: width/2
|
|
centerY: height/2
|
|
startAngle: 0
|
|
sweepAngle: 360
|
|
radiusX: workspace ? 2 : 6
|
|
radiusY: radiusX
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|