{#if onMainScreen}
{#if ($search === undefined || $search === "") && !isCustom && hideThemes} {/if} {#each filteredThemes as theme (theme.id)} {#if theme !== undefined && !(hideThemes && theme?.hideFromOverview)} {/if} {/each}
{:else}
{#if ($search === undefined || $search === "") && !isCustom && hideThemes} {/if} {#each filteredThemes as theme (theme.id)} {#if theme !== undefined && !(hideThemes && theme?.hideFromOverview)} {/if} {/each}
{/if} {#if filteredThemes.length == 0} {/if}