diff --git a/settings/hyprland.nix b/settings/hyprland.nix index 765694e..825ed37 100644 --- a/settings/hyprland.nix +++ b/settings/hyprland.nix @@ -529,7 +529,7 @@ in Timer { id: calCloseTimer - interval: 280 + interval: 240 onTriggered: calPopup.visible = false } } @@ -856,33 +856,30 @@ in Rectangle { id: calContent anchors.horizontalCenter: parent.horizontalCenter - y: 1 - width: calPopup.open ? calPopup.fullWidth : 40 - height: calPopup.open ? calPopup.fullHeight : 4 - radius: calPopup.open ? 8 : 2 + anchors.top: parent.top + anchors.topMargin: 1 + width: calPopup.open ? calPopup.fullWidth : calPopup.fullWidth + height: calPopup.open ? calPopup.fullHeight : 0 color: "#${c.base00}" - border.color: "#${c.base03}" + border.color: calPopup.open ? "#${c.base03}" : "transparent" border.width: 1 + radius: 8 clip: true - Behavior on width { - NumberAnimation { duration: 250; easing.type: Easing.OutCubic } - } Behavior on height { - NumberAnimation { duration: 250; easing.type: Easing.OutCubic } - } - Behavior on radius { - NumberAnimation { duration: 250; easing.type: Easing.OutCubic } + NumberAnimation { duration: 220; easing.type: Easing.OutCubic } } Column { id: calCol - anchors.centerIn: parent + anchors.horizontalCenter: parent.horizontalCenter + anchors.top: parent.top + anchors.topMargin: 12 spacing: 8 opacity: calPopup.open ? 1.0 : 0.0 Behavior on opacity { - NumberAnimation { duration: 180; easing.type: Easing.OutCubic } + NumberAnimation { duration: 150; easing.type: Easing.OutCubic } } // Date header