From da23a2e8a45fee864ca13429d9709a6651a0420c Mon Sep 17 00:00:00 2001 From: CodeDoctorDE Date: Sat, 12 Oct 2024 18:42:44 +0200 Subject: [PATCH] Improve search and settings dialog transition --- app/lib/actions/search.dart | 2 +- app/lib/actions/settings.dart | 4 ++-- docs/astro.config.mjs | 1 - metadata/en-US/changelogs/118.txt | 1 + 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/app/lib/actions/search.dart b/app/lib/actions/search.dart index cf295dce9703..81d390484f50 100644 --- a/app/lib/actions/search.dart +++ b/app/lib/actions/search.dart @@ -32,7 +32,7 @@ class SearchAction extends Action { position: Tween( begin: const Offset(0, -0.5), end: Offset.zero, - ).animate(animation), + ).chain(CurveTween(curve: Curves.easeOutQuart)).animate(animation), child: child, ); }, diff --git a/app/lib/actions/settings.dart b/app/lib/actions/settings.dart index ea72b02ecb01..a3416a9096e5 100644 --- a/app/lib/actions/settings.dart +++ b/app/lib/actions/settings.dart @@ -32,14 +32,14 @@ Future openSettings(BuildContext context) => showGeneralDialog( ), barrierDismissible: true, barrierLabel: MaterialLocalizations.of(context).modalBarrierDismissLabel, - transitionDuration: const Duration(milliseconds: 100), + transitionDuration: const Duration(milliseconds: 200), transitionBuilder: (context, animation, secondaryAnimation, child) { // Animate the dialog from bottom to center return SlideTransition( position: Tween( begin: const Offset(0, 1), end: Offset.zero, - ).animate(animation), + ).chain(CurveTween(curve: Curves.easeOutQuart)).animate(animation), child: child, ); }, diff --git a/docs/astro.config.mjs b/docs/astro.config.mjs index d168c208bed7..ffe3099b017b 100644 --- a/docs/astro.config.mjs +++ b/docs/astro.config.mjs @@ -7,7 +7,6 @@ import remarkGemoji from "remark-gemoji"; // https://astro.build/config export default defineConfig({ - outDir: "./build", site: "https://butterfly.linwood.dev", markdown: { remarkPlugins: [remarkHeadingID, remarkGemoji], diff --git a/metadata/en-US/changelogs/118.txt b/metadata/en-US/changelogs/118.txt index 4a8afbd5ed6d..368eb05b0b8a 100644 --- a/metadata/en-US/changelogs/118.txt +++ b/metadata/en-US/changelogs/118.txt @@ -2,6 +2,7 @@ * Add autofocus to add dialog search bar * Add transition when opening add dialog * Add size transition to toolbar +* Improve search and settings dialog transition * Change color toolbar to not have the full width * Fix pasting with label tool replaces text instead of appending * Fix unstable sort algorithm if layer is the same