forked from Shinonome/dots-hyprland
sidebar todo dialog add fade anim
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user