From 60e7d255ccf8e3d464193062bafcf3f4cb7a3a1b Mon Sep 17 00:00:00 2001 From: piexel Date: Wed, 25 Nov 2026 17:36:58 +0100 Subject: [PATCH] Animate popups, dialogs, notices and meters - Ease popups in with a 2px drift from their anchor and fade them out faster - Fade dialogs and their backdrops in and out - Bring notices, map pills and the lost connection card in with a short rise - Glide the memory, progress, bake and pregen meters to each new reading - Turn all of it off under reduced motion - Drop the animation classes that had no styles behind them --- .../src/components/ui/context-menu.tsx | 4 +- .../src/renderer/src/components/ui/dialog.tsx | 4 +- .../src/components/ui/dropdown-menu.tsx | 2 +- .../renderer/src/components/ui/popover.tsx | 2 +- .../renderer/src/components/ui/tooltip.tsx | 2 +- studio/src/renderer/src/studio/BakeMeter.tsx | 2 +- studio/src/renderer/src/studio/MapStudio.tsx | 4 +- .../renderer/src/studio/NodeSettingRow.tsx | 2 +- .../src/renderer/src/studio/NoiseStudio.tsx | 2 +- .../src/renderer/src/studio/PregenStudio.tsx | 2 +- .../renderer/src/studio/SavedWorldStudio.tsx | 4 +- studio/src/renderer/src/studio/StatusBar.tsx | 14 ++- .../renderer/src/studio/SuggestionInput.tsx | 2 +- studio/src/renderer/src/studio/ViewList.tsx | 2 +- studio/src/renderer/src/styles.css | 88 +++++++++++++++++++ 15 files changed, 116 insertions(+), 20 deletions(-) diff --git a/studio/src/renderer/src/components/ui/context-menu.tsx b/studio/src/renderer/src/components/ui/context-menu.tsx index 99bd4f87e..707569464 100644 --- a/studio/src/renderer/src/components/ui/context-menu.tsx +++ b/studio/src/renderer/src/components/ui/context-menu.tsx @@ -86,7 +86,7 @@ function ContextMenuSubContent({
- {timing !== null &&
} + {timing !== null &&
}
{timing !== null && formatMillis(millis)}
diff --git a/studio/src/renderer/src/studio/MapStudio.tsx b/studio/src/renderer/src/studio/MapStudio.tsx index f88381ba9..658595876 100644 --- a/studio/src/renderer/src/studio/MapStudio.tsx +++ b/studio/src/renderer/src/studio/MapStudio.tsx @@ -289,8 +289,8 @@ export function MapStudio({ client, world, theme, onDisconnect }: MapStudioProps
)} {!connected && ( -
-
+
+

Lost the connection to the server