27 lines
574 B
QML
27 lines
574 B
QML
import Quickshell
|
|
import Quickshell.WindowManager
|
|
import QtQuick
|
|
import QtQuick.Layouts
|
|
import qs
|
|
import qs.widgets
|
|
|
|
BarComponent {
|
|
id: root
|
|
required property ShellScreen barScreen
|
|
RowLayout {
|
|
spacing: 15
|
|
anchors.fill: parent
|
|
Repeater {
|
|
model: WindowManager.screenProjection(root.barScreen).windowsets
|
|
delegate: Rectangle {
|
|
required property var modelData
|
|
visible: modelData.shouldDisplay
|
|
StyledText {
|
|
id: wsText
|
|
text: parent.modelData.name
|
|
color: parent.modelData.active ? Colors.base0D: Colors.base03
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|