sidebar todo dialog add fade anim

This commit is contained in:
end-4
2025-04-17 22:15:27 +02:00
parent 7f779476cc
commit 8bf8c200d7
2 changed files with 14 additions and 2 deletions
@@ -130,6 +130,7 @@ Singleton {
property color colSecondaryContainerActive: mix(m3colors.m3secondaryContainer, colLayer1Active, 0.6)
property color colTooltip: m3colors.m3inverseSurface
property color colOnTooltip: m3colors.m3inverseOnSurface
property color colScrim: transparentize(m3colors.m3scrim, 0.5)
}
rounding: QtObject {
@@ -175,9 +175,20 @@ Item {
Item {
anchors.fill: parent
visible: root.showAddDialog
visible: false
z: 1000
opacity: root.showAddDialog ? 1 : 0
Behavior on opacity {
NumberAnimation {
duration: Appearance.animation.elementDecelFast.duration
easing.type: Appearance.animation.elementDecelFast.type
}
}
onOpacityChanged: {
visible = opacity > 0
}
onVisibleChanged: {
if (!visible) {
todoInput.text = ""
@@ -188,7 +199,7 @@ Item {
Rectangle { // Scrim
anchors.fill: parent
radius: Appearance.rounding.small
color: "#80000000"
color: Appearance.colors.colScrim
MouseArea {
hoverEnabled: true
anchors.fill: parent