move notifications to top overlay

This commit is contained in:
lucy 2026-09-04 13:21:47 +02:00
commit 021c82f438
12 changed files with 106 additions and 172 deletions

View file

@ -2,7 +2,7 @@ import Quickshell
import QtQuick
import QtQuick.Layouts
import qs.settings
import qs.modules.applets
import qs.widgets
import qs
Variants {
@ -19,13 +19,13 @@ Variants {
color: 'transparent'
implicitHeight: Config.cfg.bar.height
margins.top: Config.cfg.bar.floating ? 10 : 0
margins.left: Config.cfg.bar.floating ? 10 : 0
margins.right: Config.cfg.bar.floating ? 10 : 0
margins.top: Config.cfg.bar.floating ?? 10
margins.left: Config.cfg.bar.floating ?? 10
margins.right: Config.cfg.bar.floating ?? 10
Rectangle {
anchors.fill: parent
color: Colors.barBg
radius: Config.cfg.bar.floating ? Config.cfg.appearance.rounding : 0
radius: Config.cfg.bar.floating ?? Config.cfg.appearance.rounding
RowLayout {
anchors.leftMargin: 4
anchors.left: parent.left
@ -33,7 +33,9 @@ Variants {
Ws {
barScreen: root.modelData
}
ActiveWindow {screen: root.modelData}
ActiveWindow {
screen: root.modelData
}
}
RowLayout {
anchors.centerIn: parent
@ -43,15 +45,46 @@ Variants {
anchors.rightMargin: 4
anchors.right: parent.right
anchors.verticalCenter: parent.verticalCenter
Mpris {}
Bat {}
Tray {}
WallPickerButton {barScreen: root.modelData}
Pw {
Mpris {
id: mpris
}
StyledText {
text: "|"
visible: mpris.visible
}
Bat {
id: bat
}
StyledText {
text: "|"
visible: bat.visible
}
Tray {
id: tray
}
StyledText {
text: "|"
visible: tray.visible
}
WallPickerButton {
id: wpButton
barScreen: root.modelData
}
Netstatus {}
StyledText {
text: "|"
}
Pw {
id: pw
barScreen: root.modelData
}
StyledText {
text: "|"
}
Netstatus {
id: net
}
}
}
}