mirror of
https://github.com/an-anime-team/an-anime-game-launcher.git
synced 2025-01-02 06:57:20 +03:00
Some not important changes
This commit is contained in:
parent
fd6989acb8
commit
7bfb3ab0b5
2 changed files with 3 additions and 6 deletions
|
@ -1,6 +1,7 @@
|
||||||
<script context="module" lang="ts">
|
<script context="module" lang="ts">
|
||||||
declare const Neutralino;
|
declare const Neutralino;
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<script lang="ts">
|
<script lang="ts">
|
||||||
import { onMount } from 'svelte';
|
import { onMount } from 'svelte';
|
||||||
|
|
||||||
|
@ -50,16 +51,11 @@
|
||||||
settingsButton?.classList.remove('hovered');
|
settingsButton?.classList.remove('hovered');
|
||||||
};
|
};
|
||||||
});
|
});
|
||||||
|
|
||||||
// Auto theme switcher
|
|
||||||
// TODO: an option to disable it
|
|
||||||
if (window.matchMedia('(prefers-color-scheme: dark)').matches)
|
|
||||||
document.body.setAttribute('data-theme', 'dark');
|
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<main>
|
<main>
|
||||||
{#await Background.get() then uri}
|
{#await Background.get() then uri}
|
||||||
<img class="background" src="{uri}" alt="Missing Texture"> <!-- Alt: Random GMOD reference -->
|
<img class="background" src="{uri}" alt="">
|
||||||
{/await}
|
{/await}
|
||||||
|
|
||||||
<div class="downloader-panel" data-theme="light">
|
<div class="downloader-panel" data-theme="light">
|
||||||
|
|
|
@ -1,6 +1,7 @@
|
||||||
<script context="module" lang="ts">
|
<script context="module" lang="ts">
|
||||||
declare const Neutralino;
|
declare const Neutralino;
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<script lang="ts">
|
<script lang="ts">
|
||||||
import { onMount } from 'svelte';
|
import { onMount } from 'svelte';
|
||||||
import { _, locale } from 'svelte-i18n';
|
import { _, locale } from 'svelte-i18n';
|
||||||
|
|
Loading…
Reference in a new issue