fix for dark mode in pop-up notifications, system theme detection

This commit is contained in:
coolcoala
2025-08-03 11:06:19 +03:00
parent 1f7561298c
commit 9abc30b60c
7 changed files with 58 additions and 141 deletions

View File

@@ -21,7 +21,7 @@ import { useClashInfo } from "@/hooks/use-clash";
import { initGlobalLogService } from "@/services/global-log-service";
import { invoke } from "@tauri-apps/api/core";
import { showNotice } from "@/services/noticeService";
import { NoticeManager } from "@/components/base/NoticeManager";
import { Toaster } from "@/components/ui/sonner";
import { SidebarProvider, useSidebar } from "@/components/ui/sidebar";
import { AppSidebar } from "@/components/layout/sidebar";
import { useZoomControls } from "@/hooks/useZoomControls";
@@ -472,9 +472,9 @@ const Layout = () => {
return (
<SWRConfig value={{ errorRetryCount: 3 }}>
<NoticeManager />
<SidebarProvider defaultOpen={false}>
<AppLayout />
<Toaster />
</SidebarProvider>
</SWRConfig>
);