From 77f40a7201aa368b8304ab75ebb2fe6549382285 Mon Sep 17 00:00:00 2001 From: bbedward Date: Thu, 28 Aug 2025 10:12:48 -0400 Subject: [PATCH] shorten modal duration --- Common/Theme.qml | 1 + Modals/DankModal.qml | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/Common/Theme.qml b/Common/Theme.qml index 16c236fd..93ef7a6a 100644 --- a/Common/Theme.qml +++ b/Common/Theme.qml @@ -134,6 +134,7 @@ Singleton { property color shadowMedium: Qt.rgba(0, 0, 0, 0.08) property color shadowStrong: Qt.rgba(0, 0, 0, 0.3) + property int shorterDuration: 100 property int shortDuration: 150 property int mediumDuration: 300 property int longDuration: 500 diff --git a/Modals/DankModal.qml b/Modals/DankModal.qml index 5beb4afd..d2c87e26 100644 --- a/Modals/DankModal.qml +++ b/Modals/DankModal.qml @@ -20,7 +20,7 @@ PanelWindow { property bool closeOnEscapeKey: true property bool closeOnBackgroundClick: true property string animationType: "scale" - property int animationDuration: Theme.mediumDuration + property int animationDuration: Theme.shorterDuration property var animationEasing: Theme.emphasizedEasing property color backgroundColor: Theme.surfaceContainer property color borderColor: Theme.outlineMedium