From 6135c145457fe327e6213e2d1e6bb887ce4dfdf9 Mon Sep 17 00:00:00 2001 From: yazninja <71800112+yazninja@users.noreply.github.com> Date: Tue, 11 Jan 2022 14:11:30 +0800 Subject: [PATCH] Fix Acrylic v2 Don't nuke pls --- src/main/cider-base.js | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/src/main/cider-base.js b/src/main/cider-base.js index cf900b06..445b2d9e 100644 --- a/src/main/cider-base.js +++ b/src/main/cider-base.js @@ -73,14 +73,13 @@ const CiderBase = { if (process.platform === "darwin" || process.platform === "linux") { win = new BrowserWindow(options) } else { - // i don't know why but we have to do this for acrylic to work properly - if (app.cfg.get("visual.window_transparency") !== "disabled") { + if (app.cfg.get("visual.window_transparency") !== "disabled") { const { BrowserWindow } = require("electron-acrylic-window"); win = new BrowserWindow(options) - win.setVibrancy("dark") - } else { + win.setVibrancy("#59202700") // when out of focus, fills with #592027, 00 is aplha values + } + else{ win = new BrowserWindow(options) - win.setVibrancy("dark") } } @@ -434,4 +433,4 @@ const CiderBase = { } -module.exports = CiderBase; \ No newline at end of file +module.exports = CiderBase;