add anti flashbang

could be improve with smooth fading
This commit is contained in:
end-4
2025-10-22 23:56:50 +02:00
parent a4d2a720d0
commit b35ef90916
5 changed files with 105 additions and 8 deletions
@@ -50,7 +50,7 @@ Rectangle {
property real targetY: root.height / 2 - root.backgroundHeight / 2
y: root.show ? targetY : (targetY - root.backgroundAnimationMovementDistance)
implicitWidth: 350
implicitHeight: 0
implicitHeight: contentColumn.implicitHeight + dialogBackground.radius * 2
Behavior on implicitHeight {
NumberAnimation {
id: dialogBackgroundHeightAnimation