chore: disable themes on linux for now until fix is found

This commit is contained in:
2026-06-03 19:57:21 +02:00
parent f8f53c4236
commit 554f07412b
2 changed files with 149 additions and 124 deletions
+1 -1
View File
@@ -135,7 +135,7 @@
const localThemes = await getThemes();
const lastThemeName = await config_theme.get('Default');
const last_theme = localThemes.find((t) => t.name === lastThemeName);
if (!last_theme) {
if (!last_theme || $platform === 'linux') {
await config.value<string>('theme').set('Default');
loadTheme(localThemes[0], $custom_theme_container!, await config_theme_volume.get(0.15));
} else {
+27 -2
View File
@@ -1826,6 +1826,23 @@
}}
out:fly={{ duration: $reduceAnimations ? 0 : 400, y: -5, opacity: 0 }}
>
{#if $platform === 'linux'}
<div
class="flex flex-col items-center gap-4 mt-12 px-6 text-center h-full justify-center"
>
<!-- currently there is a bug when applying themes on Linux, the Launcher freezes, also when trying to load assets via the assetProtocol it fails because it says the asset was loaded insecurely -->
<span class="text-2xl font-bold drop-shadow-lg"
>Custom themes are not supported on Linux yet(we are working on it!)</span
>
<span class="text-muted-foreground font-semibold drop-shadow-lg"
>Due to technical limitations on Linux, custom themes are currently not supported.
</span>
<span class="text-muted-foreground font-semibold drop-shadow-lg"
>We are working on a solution to bring custom themes to Linux in a future update, but
we don't have an ETA yet. Stay tuned!</span
>
</div>
{:else}
<ScrollContainer class="pt-8" topOffset={45}>
<div class="grid w-full gap-1 grid-cols-3 p-3 pr-5">
{#each $custom_themes as theme (theme.folder_name)}
@@ -1870,7 +1887,10 @@
} else {
const downloadThemeResult = await downloadTheme(theme);
if (!downloadThemeResult.success) {
if (downloadThemeResult.error && downloadThemeResult.error.length > 0) {
if (
downloadThemeResult.error &&
downloadThemeResult.error.length > 0
) {
sileo.error({
title: 'Uhhm..',
description: downloadThemeResult.error,
@@ -1911,7 +1931,11 @@
onclick={async () => {
const defaultTheme = $custom_themes.find((t) => t.name === 'Default');
if (defaultTheme) {
loadTheme(defaultTheme, $custom_theme_container!, $custom_theme_volume);
loadTheme(
defaultTheme,
$custom_theme_container!,
$custom_theme_volume
);
await config.value<string>('theme').set(defaultTheme.name);
if (!(await downloadTheme(theme, true))) {
@@ -1968,6 +1992,7 @@
{/each}
</div>
</ScrollContainer>
{/if}
</div>
{/if}
</div>