quickshell: toast notification sits in a base02 card to match the calendar
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
This commit is contained in:
parent
faa345d016
commit
ad70441589
1 changed files with 36 additions and 23 deletions
|
|
@ -2663,13 +2663,25 @@ in
|
||||||
anchors.horizontalCenter: parent.horizontalCenter
|
anchors.horizontalCenter: parent.horizontalCenter
|
||||||
anchors.top: parent.top
|
anchors.top: parent.top
|
||||||
width: 320
|
width: 320
|
||||||
height: toastItem.toastOpen ? toastCol.height + 16 : 0
|
height: toastItem.toastOpen ? toastCard.height + 12 : 0
|
||||||
clip: true
|
clip: true
|
||||||
|
|
||||||
Behavior on height {
|
Behavior on height {
|
||||||
NumberAnimation { duration: Theme.animMorph; easing.type: Easing.OutExpo }
|
NumberAnimation { duration: Theme.animMorph; easing.type: Easing.OutExpo }
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Notification sits in a base02 rounded card, matching
|
||||||
|
// the calendar list. Inset 6px so the melt panel frames it.
|
||||||
|
Rectangle {
|
||||||
|
id: toastCard
|
||||||
|
anchors.top: parent.top
|
||||||
|
anchors.left: parent.left
|
||||||
|
anchors.right: parent.right
|
||||||
|
anchors.margins: 6
|
||||||
|
height: toastCol.height + 16
|
||||||
|
radius: Theme.radiusSmall
|
||||||
|
color: Theme.base02
|
||||||
|
|
||||||
NotifContent {
|
NotifContent {
|
||||||
id: toastCol
|
id: toastCol
|
||||||
notif: toastItem.currentNotif
|
notif: toastItem.currentNotif
|
||||||
|
|
@ -2699,6 +2711,7 @@ in
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue