mirror of
https://github.com/BetterSEQTA/BetterSEQTA-Plus.git
synced 2026-06-06 11:44:40 +00:00
Downloading themes @SethBurkart123 please check
This commit is contained in:
@@ -2,6 +2,7 @@
|
|||||||
import type { Theme } from '@/svelte-interface/types/Theme'
|
import type { Theme } from '@/svelte-interface/types/Theme'
|
||||||
import ThemeCard from './ThemeCard.svelte';
|
import ThemeCard from './ThemeCard.svelte';
|
||||||
import ThemeModal from './ThemeModal.svelte';
|
import ThemeModal from './ThemeModal.svelte';
|
||||||
|
import { StoreDownloadTheme } from '@/seqta/ui/themes/downloadTheme'
|
||||||
|
|
||||||
let { themes, searchTerm } = $props<{ themes: Theme[]; searchTerm: string }>();
|
let { themes, searchTerm } = $props<{ themes: Theme[]; searchTerm: string }>();
|
||||||
let displayTheme = $state<Theme | null>();
|
let displayTheme = $state<Theme | null>();
|
||||||
@@ -36,5 +37,7 @@
|
|||||||
</div>
|
</div>
|
||||||
|
|
||||||
{#if displayTheme}
|
{#if displayTheme}
|
||||||
<ThemeModal theme={displayTheme} onClose={() => displayTheme = null} onInstall={() => {}} onRemove={() => {}} />
|
<ThemeModal theme={displayTheme} onClose={() => displayTheme = null} onInstall={() => {
|
||||||
|
StoreDownloadTheme({themeContent: displayTheme as Theme});
|
||||||
|
}} onRemove={() => {}} />
|
||||||
{/if}
|
{/if}
|
||||||
|
|||||||
Reference in New Issue
Block a user