using the old functions to get some rectangles to draw

This commit is contained in:
2026-08-06 10:33:54 +01:00
parent 8ba73b061f
commit 8e59d2dcec
2 changed files with 63 additions and 0 deletions

43
Bar/WorkspaceSelector.qml Normal file
View File

@@ -0,0 +1,43 @@
import QtQuick
import QtQuick.Controls
import Quickshell
import Quickshell.Hyprland
import "../Color.js" as Colors
import "../Components/"
import "../Services/"
Container {
id: root
required property HyprlandMonitor monitor
boxHeight: 25
exclusiveMonitor: monitor
Row {
spacing: 3
Repeater {
delegate: workspaceButton
model: WorkspaceManager.getWorkspacesForMonitor(root.exclusiveMonitor)
delegateModelAccess: DelegateModel.ReadOnly
}
Component {
id: workspaceButton
Item {
required property var modelData
height: 10
width: 10
Rectangle {
anchors.fill: parent
color: "red"
}
}
}
}
}