diff --git a/src/svelte-interface/components/store/Backgrounds.svelte b/src/svelte-interface/components/store/Backgrounds.svelte index 782aa602..dffcfba6 100644 --- a/src/svelte-interface/components/store/Backgrounds.svelte +++ b/src/svelte-interface/components/store/Backgrounds.svelte @@ -16,12 +16,9 @@ let savedBackgrounds = $state([]); let installingBackgrounds = $state>(new Set()); let debugInfo = $state(''); - let displayBackground = $state(null); // New state variables let activeTab = $state<'all' | 'installed' | 'photos' | 'videos'>('all'); - let showPreview = $state(false); - let favorites = $state([]); let sortBy = $state<'newest' | 'popular' | 'name'>('newest'); // Existing functions @@ -149,33 +146,14 @@ await installBackground(background); } } - - function selectBackground(fileId: string): void { - if (selectedBackground === fileId) { - selectNoBackground(); - return; - } - selectedBackground = fileId; - setTheme(fileId); - } - + function selectNoBackground() { selectedBackground = null; setTheme(''); } - - function openPreview(background: Background) { - displayBackground = background; - showPreview = true; - } - - function closePreview() { - showPreview = false; - displayBackground = null; - } -
+
@@ -245,7 +223,7 @@
{#if isLoading}
- {#each Array(9) as _, i} + {#each Array(9) as _}
@@ -312,68 +290,6 @@ {/if}
- - - {#if showPreview && displayBackground} -
e.key === 'Escape' && closePreview()} - > -
e.stopPropagation()} - > -
-

{displayBackground.name}

- -
- -
- {#if displayBackground.type === 'image'} - {displayBackground.name} - {:else} - - {/if} -
- -

{displayBackground.description}

- -
- - {#if savedBackgrounds.includes(displayBackground.id)} - - {/if} -
-
-
- {/if}
{#if settingsState.devMode} diff --git a/src/svelte-interface/pages/store.svelte b/src/svelte-interface/pages/store.svelte index 6a0351cd..a9579968 100644 --- a/src/svelte-interface/pages/store.svelte +++ b/src/svelte-interface/pages/store.svelte @@ -98,7 +98,7 @@
-
+
{#if loading}
diff --git a/test.sh b/test.sh new file mode 100644 index 00000000..e69de29b