From e861cda23d9db938ad926d1213dece125dada988 Mon Sep 17 00:00:00 2001 From: HorizonCode Date: Sun, 1 Nov 2026 13:03:56 +0100 Subject: [PATCH] fix(theme): do not display api version badge for the default built-in theme --- src/lib/themes.ts | 2 +- src/screens/Launch.svelte | 17 ++++++++++------- 2 files changed, 11 insertions(+), 8 deletions(-) diff --git a/src/lib/themes.ts b/src/lib/themes.ts index aa213b5..1749037 100644 --- a/src/lib/themes.ts +++ b/src/lib/themes.ts @@ -233,7 +233,7 @@ export const getThemes = async (): Promise => { author: 'EZPPFarm', name: 'Default', version: '1.0.0', - apiVersion: '1.0', + apiVersion: '', description: 'The default EZPPLauncher look.', nsfw: false, scriptUrl: '', diff --git a/src/screens/Launch.svelte b/src/screens/Launch.svelte index e64da38..c4afe84 100644 --- a/src/screens/Launch.svelte +++ b/src/screens/Launch.svelte @@ -345,7 +345,8 @@ if (themeFilter === 'updates' && !theme.updateAvailable) return false; if (!query) return true; - return `${theme.name} ${theme.author} ${theme.description} ${theme.apiVersion}` + const apiPart = theme.name === 'Default' ? '' : theme.apiVersion; + return `${theme.name} ${theme.author} ${theme.description} ${apiPart}` .toLowerCase() .includes(query); }); @@ -3778,12 +3779,14 @@ {#if isActive} In use {/if} - - API {theme.apiVersion.startsWith('2') ? '2.0' : '1.0'} - + {#if theme.name !== 'Default' && theme.folder_name !== 'default' && theme.apiVersion} + + API {theme.apiVersion.startsWith('2') ? '2.0' : '1.0'} + + {/if} {#if theme.nsfw && !revealedNsfw.includes(theme.name)}