quickshell: wrap notifications in a card to match the other panes
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
This commit is contained in:
parent
583b0588c2
commit
d24a51b0af
1 changed files with 136 additions and 125 deletions
|
|
@ -2089,7 +2089,21 @@ in
|
|||
}
|
||||
}
|
||||
|
||||
// Notifications header
|
||||
// Notifications card
|
||||
Rectangle {
|
||||
width: parent.width
|
||||
height: notifCardCol.height + 16
|
||||
radius: 8
|
||||
color: Theme.base01
|
||||
|
||||
Column {
|
||||
id: notifCardCol
|
||||
anchors.top: parent.top
|
||||
anchors.topMargin: 8
|
||||
anchors.horizontalCenter: parent.horizontalCenter
|
||||
width: parent.width - 16
|
||||
spacing: 6
|
||||
|
||||
Item {
|
||||
width: parent.width
|
||||
height: 20
|
||||
|
|
@ -2124,10 +2138,6 @@ in
|
|||
}
|
||||
}
|
||||
|
||||
Column {
|
||||
spacing: 4
|
||||
width: parent.width
|
||||
|
||||
Text {
|
||||
visible: bar.notifServer.trackedNotifications.values.length === 0
|
||||
text: "No notifications"
|
||||
|
|
@ -2143,10 +2153,10 @@ in
|
|||
Rectangle {
|
||||
id: notifItem
|
||||
required property var modelData
|
||||
width: calRightCol.width
|
||||
width: notifCardCol.width
|
||||
height: notifCol.height + 12
|
||||
radius: 6
|
||||
color: Theme.base01
|
||||
color: Theme.base02
|
||||
|
||||
Column {
|
||||
id: notifCol
|
||||
|
|
@ -2188,9 +2198,9 @@ in
|
|||
width: actionText.width + 12
|
||||
height: actionText.height + 4
|
||||
radius: 4
|
||||
color: actionMa.containsMouse ? Theme.base02 : Theme.base01
|
||||
color: actionMa.containsMouse ? Theme.base03 : Theme.base02
|
||||
border.width: 1
|
||||
border.color: Theme.base02
|
||||
border.color: Theme.base03
|
||||
Text {
|
||||
id: actionText
|
||||
anchors.centerIn: parent
|
||||
|
|
@ -2234,6 +2244,7 @@ in
|
|||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// ── Notification Toast (only on primary screen) ──
|
||||
Item {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue