From 672728569513abc5e09eb6a70f07de4bd65ba483 Mon Sep 17 00:00:00 2001 From: sawka Date: Fri, 26 Jul 2024 15:05:56 -0700 Subject: [PATCH] default transparency to false --- emain/emain.ts | 2 +- frontend/app/app.tsx | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/emain/emain.ts b/emain/emain.ts index 31d0944db..ff66dc6b1 100644 --- a/emain/emain.ts +++ b/emain/emain.ts @@ -323,7 +323,7 @@ function createBrowserWindow( show: false, autoHideMenuBar: true, }; - const isTransparent = settings?.window?.transparent ?? true; + const isTransparent = settings?.window?.transparent ?? false; if (isTransparent) { winOpts.transparent = true; } else { diff --git a/frontend/app/app.tsx b/frontend/app/app.tsx index 6a98c550f..1d9a9afb3 100644 --- a/frontend/app/app.tsx +++ b/frontend/app/app.tsx @@ -204,7 +204,7 @@ function switchBlock(tabId: string, offsetX: number, offsetY: number) { function AppSettingsUpdater() { const settings = jotai.useAtomValue(atoms.settingsConfigAtom); React.useEffect(() => { - let isTransparent = settings?.window?.transparent ?? true; + let isTransparent = settings?.window?.transparent ?? false; let opacity = util.boundNumber(settings?.window?.opacity ?? 0.8, 0, 1); let baseBgColor = settings?.window?.bgcolor; console.log("window settings", settings.window);