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