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 colSecondaryContainerActive: mix(m3colors.m3secondaryContainer, colLayer1Active, 0.6)
|
||||||
property color colTooltip: m3colors.m3inverseSurface
|
property color colTooltip: m3colors.m3inverseSurface
|
||||||
property color colOnTooltip: m3colors.m3inverseOnSurface
|
property color colOnTooltip: m3colors.m3inverseOnSurface
|
||||||
|
property color colScrim: transparentize(m3colors.m3scrim, 0.5)
|
||||||
}
|
}
|
||||||
|
|
||||||
rounding: QtObject {
|
rounding: QtObject {
|
||||||
|
|||||||
@@ -175,9 +175,20 @@ Item {
|
|||||||
|
|
||||||
Item {
|
Item {
|
||||||
anchors.fill: parent
|
anchors.fill: parent
|
||||||
visible: root.showAddDialog
|
visible: false
|
||||||
z: 1000
|
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: {
|
onVisibleChanged: {
|
||||||
if (!visible) {
|
if (!visible) {
|
||||||
todoInput.text = ""
|
todoInput.text = ""
|
||||||
@@ -188,7 +199,7 @@ Item {
|
|||||||
Rectangle { // Scrim
|
Rectangle { // Scrim
|
||||||
anchors.fill: parent
|
anchors.fill: parent
|
||||||
radius: Appearance.rounding.small
|
radius: Appearance.rounding.small
|
||||||
color: "#80000000"
|
color: Appearance.colors.colScrim
|
||||||
MouseArea {
|
MouseArea {
|
||||||
hoverEnabled: true
|
hoverEnabled: true
|
||||||
anchors.fill: parent
|
anchors.fill: parent
|
||||||
|
|||||||
Reference in New Issue
Block a user