Some not important changes

This commit is contained in:
Observer KRypt0n_ 2021-12-29 14:59:55 +02:00
parent fd6989acb8
commit 7bfb3ab0b5
No known key found for this signature in database
GPG key ID: DC5D4EC1303465DA
2 changed files with 3 additions and 6 deletions

View file

@ -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">

View file

@ -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';