initial commit
This commit is contained in:
commit
d0900383e3
7 changed files with 137 additions and 0 deletions
38
modules/bar/Bar.qml
Normal file
38
modules/bar/Bar.qml
Normal file
|
|
@ -0,0 +1,38 @@
|
|||
import QtQuick
|
||||
import QtQuick.Layouts
|
||||
import Quickshell
|
||||
|
||||
import qs
|
||||
|
||||
Variants {
|
||||
model: Quickshell.screens
|
||||
delegate: PanelWindow {
|
||||
id: root
|
||||
required property var modelData
|
||||
screen: modelData
|
||||
anchors {
|
||||
top: true
|
||||
left: true
|
||||
right: true
|
||||
}
|
||||
implicitHeight: 30
|
||||
color: Colors.base00
|
||||
RowLayout {
|
||||
id: leftLayout
|
||||
spacing: 5
|
||||
anchors.left: parent.left
|
||||
anchors.verticalCenter: parent.verticalCenter
|
||||
anchors.leftMargin: 10
|
||||
Ws {
|
||||
barScreen: root.modelData
|
||||
barHeight: root.implicitHeight
|
||||
}
|
||||
ActiveWindow {
|
||||
barHeight: root.implicitHeight
|
||||
}
|
||||
}
|
||||
RowLayout {
|
||||
id: rightLayout
|
||||
}
|
||||
}
|
||||
}
|
||||
Loading…
Reference in a new issue