diff --git a/src/lib/communityThemes.ts b/src/lib/communityThemes.ts index 2169c9f..074498e 100644 --- a/src/lib/communityThemes.ts +++ b/src/lib/communityThemes.ts @@ -951,11 +951,12 @@ export async function reviewCommunityTheme( */ export async function downloadAndInstallCommunityTheme( theme: CommunityTheme, - onProgress?: (status: string, percentage: number) => void + onProgress?: (status: string, percentage: number) => void, + options?: { folderName?: string } ): Promise<{ success: boolean; folderName: string }> { const { onProgress: reportProgress = () => {} } = { onProgress }; const baseThemesDir = await themesDirectory(); - const folderName = theme.id; + const folderName = options?.folderName?.trim() || theme.id; const targetFolder = await path.join(baseThemesDir, folderName); reportProgress('Downloading theme package...', 10); diff --git a/src/lib/components/theme/CommunityWorkshopView.svelte b/src/lib/components/theme/CommunityWorkshopView.svelte index 08a3d15..c6a6b41 100644 --- a/src/lib/components/theme/CommunityWorkshopView.svelte +++ b/src/lib/components/theme/CommunityWorkshopView.svelte @@ -51,6 +51,7 @@ import { normalizeThemeTags } from '$lib/themeV2'; import { reloadThemes, updateInstalledThemeTags, type Theme } from '$lib/themes'; import { currentUser } from '$lib/userAuthentication'; + import { reduceAnimations } from '$lib/userSettings'; import WorkshopTooltip from './WorkshopTooltip.svelte'; import { Archive, @@ -87,6 +88,7 @@ import { sileo } from 'sileo'; import { onDestroy, onMount } from 'svelte'; import { SvelteMap, SvelteSet } from 'svelte/reactivity'; + import { fade } from 'svelte/transition'; let { onApplyTheme, @@ -2051,7 +2053,7 @@ {:else}
Asset
{element.src}
@@ -829,7 +837,7 @@ {/if} {:else if element.type === 'lottie'} -Animation
{element.src}
@@ -885,7 +893,7 @@ {:else if element.type === 'shape'} -