chore: move theme extraction to tauri backend

This commit is contained in:
2026-05-27 11:44:16 +02:00
parent d2ecc5210f
commit 94f78f281d
10 changed files with 753 additions and 175 deletions
+9 -1
View File
@@ -1,6 +1,5 @@
<script lang="ts">
import Logo from '$assets/logo.png';
import '../app.css';
import * as AlertDialog from '$lib/components/ui/alert-dialog';
import AnimatedBg from '$lib/components/ui/animated-bg/AnimatedBg.svelte';
import Button from '$lib/components/ui/button/button.svelte';
@@ -36,6 +35,7 @@
userSettings,
} from '$lib/userSettings';
import { trackMediaContainer } from '$lib/utils';
import '../app.css';
import { Buffer } from 'buffer';
import { SemVer } from 'semver';
import { sileo } from 'sileo';
@@ -185,6 +185,14 @@
}
}
combinedThemes.sort((a, b) => {
if (a.name === 'Default') return -1;
if (b.name === 'Default') return 1;
if (a.status === 'installed' && b.status !== 'installed') return -1;
if (a.status !== 'installed' && b.status === 'installed') return 1;
return a.name.localeCompare(b.name);
});
custom_themes.set(combinedThemes);
} catch (err) {
console.log(err);