default transparency to false

This commit is contained in:
sawka 2024-07-26 15:05:56 -07:00
parent 9df9c99fbd
commit 6727285695
2 changed files with 2 additions and 2 deletions

View File

@ -323,7 +323,7 @@ function createBrowserWindow(
show: false, show: false,
autoHideMenuBar: true, autoHideMenuBar: true,
}; };
const isTransparent = settings?.window?.transparent ?? true; const isTransparent = settings?.window?.transparent ?? false;
if (isTransparent) { if (isTransparent) {
winOpts.transparent = true; winOpts.transparent = true;
} else { } else {

View File

@ -204,7 +204,7 @@ function switchBlock(tabId: string, offsetX: number, offsetY: number) {
function AppSettingsUpdater() { function AppSettingsUpdater() {
const settings = jotai.useAtomValue(atoms.settingsConfigAtom); const settings = jotai.useAtomValue(atoms.settingsConfigAtom);
React.useEffect(() => { 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 opacity = util.boundNumber(settings?.window?.opacity ?? 0.8, 0, 1);
let baseBgColor = settings?.window?.bgcolor; let baseBgColor = settings?.window?.bgcolor;
console.log("window settings", settings.window); console.log("window settings", settings.window);