mirror of
https://github.com/MrUnknownDE/VRCX.git
synced 2026-05-05 22:36:05 +02:00
fix sonner theme switching for toasts
This commit is contained in:
+5
-1
@@ -10,7 +10,7 @@
|
||||
ondragover="event.preventDefault()"
|
||||
ondrop="event.preventDefault()">
|
||||
<RouterView></RouterView>
|
||||
<Toaster position="top-center"></Toaster>
|
||||
<Toaster position="top-center" :theme="theme"></Toaster>
|
||||
|
||||
<AlertDialogModal></AlertDialogModal>
|
||||
<PromptDialogModal></PromptDialogModal>
|
||||
@@ -41,6 +41,10 @@
|
||||
|
||||
const isMacOS = computed(() => navigator.platform.includes('Mac'));
|
||||
|
||||
const theme = computed(() => {
|
||||
return store.appearanceSettings.isDarkMode ? 'dark' : 'light';
|
||||
});
|
||||
|
||||
initNoty();
|
||||
|
||||
const store = createGlobalStores();
|
||||
|
||||
Reference in New Issue
Block a user