Bar: an empty bar on all monitors
This commit is contained in:
parent
48a32b01fd
commit
b65a8474c8
2 changed files with 50 additions and 6 deletions
28
Modules/Bar/Bar.qml
Normal file
28
Modules/Bar/Bar.qml
Normal file
|
|
@ -0,0 +1,28 @@
|
||||||
|
import QtQuick
|
||||||
|
import Quickshell
|
||||||
|
|
||||||
|
PanelWindow {
|
||||||
|
id: root
|
||||||
|
|
||||||
|
property var modelData
|
||||||
|
|
||||||
|
screen: modelData
|
||||||
|
implicitHeight: 36
|
||||||
|
color: "transparent"
|
||||||
|
|
||||||
|
anchors {
|
||||||
|
top: true
|
||||||
|
left: true
|
||||||
|
right: true
|
||||||
|
}
|
||||||
|
|
||||||
|
Item {
|
||||||
|
anchors.fill: parent
|
||||||
|
|
||||||
|
Rectangle {
|
||||||
|
anchors.fill: parent
|
||||||
|
color: "purple"
|
||||||
|
layer.enabled: true
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
28
shell.qml
28
shell.qml
|
|
@ -1,9 +1,25 @@
|
||||||
import Quickshell
|
/*
|
||||||
|
|
||||||
ShellRoot {
|
|
||||||
/*
|
|
||||||
Here we go, this is it. Rebuild time...
|
Here we go, this is it. Rebuild time...
|
||||||
No spaghetti code, preset sizing, proper project structure
|
No spaghetti code, preset sizing, proper project structure
|
||||||
only "spawn" UI, do not do anything else here.
|
only "spawn" UI, do not do anything else here.
|
||||||
*/
|
*/
|
||||||
}
|
|
||||||
|
import QtQuick
|
||||||
|
import Quickshell
|
||||||
|
import Quickshell.Io
|
||||||
|
import Quickshell.Widgets
|
||||||
|
import qs.Modules.Bar
|
||||||
|
|
||||||
|
ShellRoot {
|
||||||
|
id: root
|
||||||
|
|
||||||
|
Variants {
|
||||||
|
model: Quickshell.screens
|
||||||
|
|
||||||
|
delegate: Bar {
|
||||||
|
modelData: item
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue