From 78f825eda8e862cd81d60aecf59ebd8a3f773590 Mon Sep 17 00:00:00 2001 From: Travis Lane <63308171+Tormak9970@users.noreply.github.com> Date: Fri, 13 Sep 2024 11:46:53 -0400 Subject: [PATCH] feat: added fade-in for modals --- src/components/modals/DialogModal.svelte | 28 +- src/components/modals/GridPreviewModal.svelte | 50 +--- .../modals/LogoPositionModal.svelte | 9 +- src/components/modals/Modals.svelte | 68 +++++ src/components/modals/SteamPathModal.svelte | 17 +- src/components/modals/UpdateTilesModal.svelte | 15 +- .../modals/batch-apply/BatchApplyModal.svelte | 15 +- .../BatchApplyProgressModal.svelte | 32 +- .../clean-grids/CleanConflictDialog.svelte | 38 ++- .../modals/clean-grids/CleanGridsModal.svelte | 17 +- .../current-grids/CurrentGridsModal.svelte | 3 +- .../modals/game-search/GameSearchModal.svelte | 22 +- .../modals/info-modal/InfoModal.svelte | 8 +- .../modals/info-modal/InfoModalSection.svelte | 3 +- .../manual-games/ManualGamesModal.svelte | 8 +- .../manual-games/add-methods/Search.svelte | 4 +- .../modals/modal-utils/ModalBody.svelte | 275 ++++++++++++++---- .../modals/modal-utils/OldModalBody.svelte | 114 ++++++++ .../modal-utils/game-filter/GameFilter.svelte | 3 +- .../modals/settings/FilePathEntry.svelte | 3 +- .../modals/settings/SettingsModal.svelte | 113 ++++--- .../modals/settings/TextFieldEntry.svelte | 4 +- .../modals/settings/ToggleFieldEntry.svelte | 3 +- .../modals/updates/UpdateModal.svelte | 26 +- src/lib/controllers/AppController.ts | 3 +- src/windows/main/Main.svelte | 69 +---- 26 files changed, 600 insertions(+), 350 deletions(-) create mode 100644 src/components/modals/Modals.svelte create mode 100644 src/components/modals/modal-utils/OldModalBody.svelte diff --git a/src/components/modals/DialogModal.svelte b/src/components/modals/DialogModal.svelte index 2580a3fa..8fc9a785 100644 --- a/src/components/modals/DialogModal.svelte +++ b/src/components/modals/DialogModal.svelte @@ -3,6 +3,8 @@ import { dialogModalCancel, dialogModalCancelText, dialogModalConfirm, dialogModalConfirmText, dialogModalMessage, dialogModalTitle, dialogModalType, showDialogModal } from "../../stores/Modals"; import ModalBody from "./modal-utils/ModalBody.svelte"; + let open = true; + /** * Function to run on confirmation. */ @@ -20,7 +22,7 @@ } - + open = false} canClose={false}>
@@ -43,15 +45,15 @@
{$dialogModalMessage}
-
- {#if $dialogModalConfirmText !== ""} -
+ + {#if $dialogModalConfirmText !== ""} +