mirror of
https://github.com/kunkunsh/kunkun-ext-serve.git
synced 2025-04-03 18:16:42 +00:00
20 lines
395 B
Svelte
20 lines
395 B
Svelte
<script>
|
|
import '../app.css';
|
|
import { ModeWatcher } from 'mode-watcher';
|
|
import { ThemeWrapper, updateTheme } from '@kksh/svelte5';
|
|
import { onMount } from 'svelte';
|
|
import { ui } from '@kksh/api/ui/iframe';
|
|
|
|
onMount(() => {
|
|
ui.registerDragRegion();
|
|
ui.getTheme().then((theme) => {
|
|
updateTheme(theme);
|
|
});
|
|
});
|
|
</script>
|
|
|
|
<ModeWatcher />
|
|
<ThemeWrapper>
|
|
<slot />
|
|
</ThemeWrapper>
|