mirror of
https://github.com/kossLAN/dots.git
synced 2025-11-05 06:59:50 -05:00
progress save
This commit is contained in:
parent
fa7d012416
commit
d32bedda31
9 changed files with 293 additions and 249 deletions
|
|
@ -7,91 +7,120 @@ import "systray"
|
|||
// import qs.widgets
|
||||
import qs
|
||||
|
||||
PanelWindow {
|
||||
id: root
|
||||
color: "transparent"
|
||||
implicitHeight: ShellSettings.sizing.barHeight
|
||||
property alias popup: popupHandler
|
||||
Variants {
|
||||
model: Quickshell.screens
|
||||
|
||||
anchors {
|
||||
top: true
|
||||
left: true
|
||||
right: true
|
||||
}
|
||||
|
||||
Rectangle {
|
||||
delegate: PanelWindow {
|
||||
id: root
|
||||
color: ShellSettings.colors.surface_translucent
|
||||
anchors.fill: parent
|
||||
}
|
||||
implicitHeight: ShellSettings.sizing.barHeight
|
||||
screen: modelData
|
||||
|
||||
PopupHandler {
|
||||
id: popupHandler
|
||||
bar: root
|
||||
}
|
||||
|
||||
RowLayout {
|
||||
spacing: 0
|
||||
required property var modelData
|
||||
|
||||
anchors {
|
||||
fill: parent
|
||||
leftMargin: 5
|
||||
rightMargin: 5
|
||||
top: true
|
||||
left: true
|
||||
right: true
|
||||
}
|
||||
|
||||
// Left side of bar
|
||||
RowLayout {
|
||||
spacing: 15
|
||||
Layout.fillWidth: true
|
||||
Layout.fillHeight: true
|
||||
|
||||
Workspaces {
|
||||
screen: root.screen
|
||||
Layout.fillHeight: true
|
||||
}
|
||||
|
||||
ActiveWindow {
|
||||
id: activeWindow
|
||||
Layout.preferredWidth: 400
|
||||
}
|
||||
PopupHandler {
|
||||
id: popupHandler
|
||||
bar: root
|
||||
}
|
||||
|
||||
// Right side of bar
|
||||
RowLayout {
|
||||
spacing: 10
|
||||
Layout.fillWidth: true
|
||||
Layout.fillHeight: true
|
||||
Layout.alignment: Qt.AlignRight
|
||||
spacing: 0
|
||||
|
||||
SysTray {
|
||||
id: sysTray
|
||||
popup: root.popup
|
||||
// bar: root
|
||||
Layout.fillHeight: true
|
||||
anchors {
|
||||
fill: parent
|
||||
leftMargin: 5
|
||||
rightMargin: 5
|
||||
}
|
||||
|
||||
// VolumeIndicator {
|
||||
// id: volumeIndicator
|
||||
// popup: root.popup
|
||||
// Layout.preferredWidth: this.height
|
||||
// Layout.fillHeight: true
|
||||
// Layout.topMargin: 2
|
||||
// Layout.bottomMargin: 2
|
||||
// }
|
||||
// Left side of bar
|
||||
RowLayout {
|
||||
spacing: 15
|
||||
Layout.fillWidth: true
|
||||
Layout.fillHeight: true
|
||||
|
||||
// BatteryIndicator {
|
||||
// id: batteryIndicator
|
||||
// popup: root.popup
|
||||
// Layout.fillHeight: true
|
||||
// }
|
||||
Workspaces {
|
||||
screen: root.screen
|
||||
Layout.fillHeight: true
|
||||
}
|
||||
|
||||
// Widgets.Separator {
|
||||
// Layout.leftMargin: 5
|
||||
// Layout.rightMargin: 5
|
||||
// }
|
||||
ActiveWindow {
|
||||
id: activeWindow
|
||||
Layout.preferredWidth: 400
|
||||
}
|
||||
}
|
||||
|
||||
Clock {
|
||||
id: clock
|
||||
color: ShellSettings.colors.active
|
||||
// Right side of bar
|
||||
RowLayout {
|
||||
spacing: 10
|
||||
Layout.fillWidth: true
|
||||
Layout.fillHeight: true
|
||||
Layout.alignment: Qt.AlignRight
|
||||
|
||||
SysTray {
|
||||
id: sysTray
|
||||
popup: popupHandler
|
||||
Layout.fillHeight: true
|
||||
}
|
||||
|
||||
PopupItem {
|
||||
id: test
|
||||
Layout.preferredWidth: 20
|
||||
Layout.fillHeight: true
|
||||
|
||||
onClicked: {
|
||||
popupHandler.set(test);
|
||||
}
|
||||
|
||||
menu: Rectangle {
|
||||
implicitWidth: 100
|
||||
implicitHeight: 100
|
||||
}
|
||||
}
|
||||
|
||||
PopupItem {
|
||||
id: test2
|
||||
Layout.preferredWidth: 20
|
||||
Layout.fillHeight: true
|
||||
|
||||
onClicked: {
|
||||
popupHandler.set(test2);
|
||||
}
|
||||
|
||||
menu: Rectangle {
|
||||
implicitWidth: 200
|
||||
implicitHeight: 200
|
||||
}
|
||||
}
|
||||
|
||||
// VolumeIndicator {
|
||||
// id: volumeIndicator
|
||||
// popup: root.popup
|
||||
// Layout.preferredWidth: this.height
|
||||
// Layout.fillHeight: true
|
||||
// Layout.topMargin: 2
|
||||
// Layout.bottomMargin: 2
|
||||
// }
|
||||
|
||||
// BatteryIndicator {
|
||||
// id: batteryIndicator
|
||||
// Layout.fillHeight: true
|
||||
// }
|
||||
|
||||
// Widgets.Separator {
|
||||
// Layout.leftMargin: 5
|
||||
// Layout.rightMargin: 5
|
||||
// }
|
||||
|
||||
Clock {
|
||||
id: clock
|
||||
color: ShellSettings.colors.active
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue