mirror of
https://github.com/an-anime-team/an-anime-game-launcher.git
synced 2024-12-30 05:28:15 +03:00
425c7f4db0
- added blank analytics window - added roadmap goal - removed `components.sass` file; its content was moved to `settings.sass` - updated Spain and Italian - made preparations for tos violation warning window - improved `Button` component - added `constants.uri.discord` and `constants.placeholders.uppercase.company_alterego` fields - updated empathize version, added proper windows centering
33 lines
775 B
Svelte
33 lines
775 B
Svelte
<script context="module" lang="ts">
|
|
declare const Neutralino;
|
|
</script>
|
|
|
|
<script lang="ts">
|
|
import { onMount } from 'svelte';
|
|
import { _, locale } from 'svelte-i18n';
|
|
|
|
import { Configs, Windows } from './empathize';
|
|
|
|
onMount(() => {
|
|
Windows.current.show();
|
|
Windows.current.center();
|
|
});
|
|
|
|
Neutralino.events.on('windowClose', () => {
|
|
Neutralino.app.exit();
|
|
});
|
|
|
|
// Auto theme switcher
|
|
Configs.get('theme').then((theme) => {
|
|
if (theme === 'system')
|
|
theme = window.matchMedia('(prefers-color-scheme: dark)').matches ? 'dark' : 'light';
|
|
|
|
document.body.setAttribute('data-theme', theme as string);
|
|
});
|
|
</script>
|
|
|
|
{#if typeof $locale === 'string'}
|
|
<main>
|
|
|
|
</main>
|
|
{/if}
|