feat(home): don't fade from white if nds was already booted

This commit is contained in:
2025-11-17 23:23:26 +01:00
parent 98d5dd1ea0
commit 4e5c196ba8
4 changed files with 12 additions and 3 deletions

View File

@@ -1,13 +1,13 @@
<script setup lang="ts">
const store = useHomeStore();
const app = useAppStore();
const backgroundImage = useTemplateRef("backgroundImage");
useRender((ctx) => {
if (!backgroundImage.value) return;
ctx.globalAlpha = store.intro.stage1Opacity;
ctx.globalAlpha = app.booted ? 1 : store.intro.stage1Opacity;
ctx.drawImage(backgroundImage.value, 0, 0);
});
</script>