quickshell: sync concave corners with calendar slide animation

Corners now track calContent.height (clamped to 8px) instead of
fading opacity, so they reveal with the same slide-down morph.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
rope 2026-05-26 15:05:44 +01:00
parent 3271262e8d
commit 36b02fb888

View file

@ -861,10 +861,9 @@ in
anchors.right: calContent.left anchors.right: calContent.left
anchors.top: parent.top anchors.top: parent.top
width: 8 width: 8
height: 8 height: Math.min(8, calContent.height)
visible: calPopup.open visible: calContent.height > 0
opacity: calPopup.open ? 1.0 : 0.0 clip: true
Behavior on opacity { NumberAnimation { duration: 150 } }
onPaint: { onPaint: {
var ctx = getContext("2d"); var ctx = getContext("2d");
var r = width; var r = width;
@ -888,10 +887,9 @@ in
anchors.left: calContent.right anchors.left: calContent.right
anchors.top: parent.top anchors.top: parent.top
width: 8 width: 8
height: 8 height: Math.min(8, calContent.height)
visible: calPopup.open visible: calContent.height > 0
opacity: calPopup.open ? 1.0 : 0.0 clip: true
Behavior on opacity { NumberAnimation { duration: 150 } }
onPaint: { onPaint: {
var ctx = getContext("2d"); var ctx = getContext("2d");
var r = width; var r = width;