made panelwindow apply to the whole bar instead of individual containers

This commit is contained in:
2026-08-07 16:18:17 +01:00
parent 11a8f03215
commit d54487022f
2 changed files with 89 additions and 73 deletions

34
Bar.qml
View File

@@ -8,9 +8,15 @@ import "Color.js" as Colors
Scope { Scope {
Variants { Variants {
model: Quickshell.screens id: panelDelegate
delegate: panelWindow
model: Quickshell.screens
}
Component {
id: panelWindow
delegate: Component {
PanelWindow { PanelWindow {
id: win id: win
@@ -23,9 +29,12 @@ Scope {
exclusionMode: ExclusionMode.Normal exclusionMode: ExclusionMode.Normal
exclusiveZone: barExclusionZone exclusiveZone: barExclusionZone
implicitHeight: barMaxHeight implicitHeight: barMaxHeight
mask: maskRegion
screen: modelData screen: modelData
mask: Region { Region {
id: maskRegion
Region { Region {
item: left item: left
} }
@@ -45,7 +54,20 @@ Scope {
top: true top: true
} }
MultiEffect {
anchors.fill: rowContainer
shadowBlur: 1.5
shadowColor: Colors.mantle
shadowEnabled: true
shadowHorizontalOffset: 5
shadowOpacity: 1
shadowVerticalOffset: 3
source: rowContainer
}
Item { Item {
id: rowContainer
anchors { anchors {
fill: parent fill: parent
topMargin: 3 topMargin: 3
@@ -89,12 +111,17 @@ Scope {
id: right id: right
Layout.alignment: Qt.AlignTop Layout.alignment: Qt.AlignTop
spacing: 5
anchors { anchors {
right: parent.right right: parent.right
top: parent.top top: parent.top
} }
Network {
monitor: win.monitor
}
Bluetooth { Bluetooth {
monitor: win.monitor monitor: win.monitor
} }
@@ -103,4 +130,3 @@ Scope {
} }
} }
} }
}

View File

@@ -94,16 +94,6 @@ Item {
id: tapHandler id: tapHandler
} }
RectangularShadow {
anchors.fill: container
blur: 30
color: Colors.mantle
offset.x: 5
offset.y: 2
radius: container.radius
spread: 5
}
Rectangle { Rectangle {
id: container id: container