chore: disable themes on linux for now until fix is found
This commit is contained in:
@@ -135,7 +135,7 @@
|
|||||||
const localThemes = await getThemes();
|
const localThemes = await getThemes();
|
||||||
const lastThemeName = await config_theme.get('Default');
|
const lastThemeName = await config_theme.get('Default');
|
||||||
const last_theme = localThemes.find((t) => t.name === lastThemeName);
|
const last_theme = localThemes.find((t) => t.name === lastThemeName);
|
||||||
if (!last_theme) {
|
if (!last_theme || $platform === 'linux') {
|
||||||
await config.value<string>('theme').set('Default');
|
await config.value<string>('theme').set('Default');
|
||||||
loadTheme(localThemes[0], $custom_theme_container!, await config_theme_volume.get(0.15));
|
loadTheme(localThemes[0], $custom_theme_container!, await config_theme_volume.get(0.15));
|
||||||
} else {
|
} else {
|
||||||
|
|||||||
@@ -1826,6 +1826,23 @@
|
|||||||
}}
|
}}
|
||||||
out:fly={{ duration: $reduceAnimations ? 0 : 400, y: -5, opacity: 0 }}
|
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}>
|
<ScrollContainer class="pt-8" topOffset={45}>
|
||||||
<div class="grid w-full gap-1 grid-cols-3 p-3 pr-5">
|
<div class="grid w-full gap-1 grid-cols-3 p-3 pr-5">
|
||||||
{#each $custom_themes as theme (theme.folder_name)}
|
{#each $custom_themes as theme (theme.folder_name)}
|
||||||
@@ -1870,7 +1887,10 @@
|
|||||||
} else {
|
} else {
|
||||||
const downloadThemeResult = await downloadTheme(theme);
|
const downloadThemeResult = await downloadTheme(theme);
|
||||||
if (!downloadThemeResult.success) {
|
if (!downloadThemeResult.success) {
|
||||||
if (downloadThemeResult.error && downloadThemeResult.error.length > 0) {
|
if (
|
||||||
|
downloadThemeResult.error &&
|
||||||
|
downloadThemeResult.error.length > 0
|
||||||
|
) {
|
||||||
sileo.error({
|
sileo.error({
|
||||||
title: 'Uhhm..',
|
title: 'Uhhm..',
|
||||||
description: downloadThemeResult.error,
|
description: downloadThemeResult.error,
|
||||||
@@ -1911,7 +1931,11 @@
|
|||||||
onclick={async () => {
|
onclick={async () => {
|
||||||
const defaultTheme = $custom_themes.find((t) => t.name === 'Default');
|
const defaultTheme = $custom_themes.find((t) => t.name === 'Default');
|
||||||
if (defaultTheme) {
|
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);
|
await config.value<string>('theme').set(defaultTheme.name);
|
||||||
|
|
||||||
if (!(await downloadTheme(theme, true))) {
|
if (!(await downloadTheme(theme, true))) {
|
||||||
@@ -1968,6 +1992,7 @@
|
|||||||
{/each}
|
{/each}
|
||||||
</div>
|
</div>
|
||||||
</ScrollContainer>
|
</ScrollContainer>
|
||||||
|
{/if}
|
||||||
</div>
|
</div>
|
||||||
{/if}
|
{/if}
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
Reference in New Issue
Block a user