From c8e7a11af77417d835c2f9991ba591b3bc5ced10 Mon Sep 17 00:00:00 2001 From: Tormak <63308171+Tormak9970@users.noreply.github.com> Date: Wed, 10 Jan 2024 12:17:33 -0500 Subject: [PATCH] feat: app window is slightly rounded to match design language --- src-tauri/tauri.conf.json | 1 + src/components/Footer.svelte | 2 +- src/components/Titlebar.svelte | 3 +-- src/components/layout/PaddedScrollContainer.svelte | 2 +- src/components/layout/VirtualGrid.svelte | 2 +- src/components/layout/VirtualList.svelte | 2 +- .../{PrivacyModal.svelte => InfoModal.svelte} | 0 .../modals/current-grids/CurrentGridsModal.svelte | 2 +- src/components/modals/modal-utils/ModalBody.svelte | 10 +++++++++- src/{components => lib}/directives/scrollShadow.ts | 0 src/stores/AppState.ts | 1 + src/windows/main/Main.svelte | 14 ++++++++++---- 12 files changed, 27 insertions(+), 12 deletions(-) rename src/components/modals/{PrivacyModal.svelte => InfoModal.svelte} (100%) rename src/{components => lib}/directives/scrollShadow.ts (100%) diff --git a/src-tauri/tauri.conf.json b/src-tauri/tauri.conf.json index ade536dd..23da0d9a 100644 --- a/src-tauri/tauri.conf.json +++ b/src-tauri/tauri.conf.json @@ -153,6 +153,7 @@ "fullscreen": false, "resizable": true, "decorations": false, + "transparent": true, "center": true, "visible": true } diff --git a/src/components/Footer.svelte b/src/components/Footer.svelte index b6a076a4..80f50148 100644 --- a/src/components/Footer.svelte +++ b/src/components/Footer.svelte @@ -41,7 +41,7 @@ {/if} - $showInfoModal = true} width="auto" tooltipPosition="auto"> + $showInfoModal = true} width="auto" tooltipPosition="auto"> diff --git a/src/components/Titlebar.svelte b/src/components/Titlebar.svelte index 8e341335..a80ac32a 100644 --- a/src/components/Titlebar.svelte +++ b/src/components/Titlebar.svelte @@ -9,13 +9,12 @@ let windowCloseUnsub: () => void; export let title: string; + export let isMaxed = false; let minimize: HTMLDivElement; let maximize: HTMLDivElement; let close: HTMLDivElement; - let isMaxed = false; - /** * Function to run when the user attempts to close the main window. */ diff --git a/src/components/layout/PaddedScrollContainer.svelte b/src/components/layout/PaddedScrollContainer.svelte index 872b86ba..f81df356 100644 --- a/src/components/layout/PaddedScrollContainer.svelte +++ b/src/components/layout/PaddedScrollContainer.svelte @@ -1,6 +1,6 @@
+