feat(home): add theme and alarm buttons (dummy), and refactor to have less components

This commit is contained in:
2025-12-19 19:53:31 +01:00
parent 69252f9f29
commit f32fd19d64
7 changed files with 44 additions and 76 deletions

View File

@@ -0,0 +1,17 @@
<script setup lang="ts">
const props = defineProps<{
x: number;
y: number;
opacity: number;
image: HTMLImageElement;
}>();
useRender((ctx) => {
ctx.globalAlpha = props.opacity;
ctx.drawImage(props.image, props.x, props.y);
});
defineOptions({
render: () => null,
});
</script>