new_dots/configuration/modules/dots/quick_shell/config/shell.qml
2026-03-08 18:52:40 +01:00

59 lines
1.5 KiB
QML

pragma ComponentBehavior: Bound
import Quickshell
import QtQuick
ShellRoot {
id: root
property color bgColor: "#6a6365"
property color recColor: "#595254"
property color fontColor: "#FFFFFF"
property int fontSize: 14
property int barWidth: 50
property int recRadius: 8
property int recLength: 35
property int myMargin: 10
property int edgeMargin: 15
SystemClock {
id: clock
precision: SystemClock.Minutes
}
Variants {
model: Quickshell.screens
delegate: Scope {
id: delegate
required property var modelData
property bool expanderOpen: false
SideBar {
clock: clock
screen: delegate.modelData
bgColor: root.bgColor
recColor: root.recColor
fontColor: root.fontColor
fontSize: root.fontSize
barWidth: root.barWidth
recRadius: root.recRadius
recLength: root.recLength
myMargin: root.myMargin
edgeMargin: root.edgeMargin
expanderOpen: delegate.expanderOpen
onExpanderOpenChanged: delegate.expanderOpen = expanderOpen
}
PowerPopup {
screen: delegate.modelData
expanderOpen: delegate.expanderOpen
bgColor: root.bgColor
recColor: root.recColor
recRadius: root.recRadius
barWidth: root.barWidth
}
}
}
}