This commit is contained in:
vapormusic 2022-01-11 13:32:46 +07:00
commit 315cafe5f4

View file

@ -73,14 +73,13 @@ const CiderBase = {
if (process.platform === "darwin" || process.platform === "linux") { if (process.platform === "darwin" || process.platform === "linux") {
win = new BrowserWindow(options) win = new BrowserWindow(options)
} else { } 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"); const { BrowserWindow } = require("electron-acrylic-window");
win = new BrowserWindow(options) win = new BrowserWindow(options)
win.setVibrancy("dark") win.setVibrancy("#59202700") // when out of focus, fills with #592027, 00 is aplha values
} else { }
else{
win = new BrowserWindow(options) win = new BrowserWindow(options)
win.setVibrancy("dark")
} }
} }
@ -440,4 +439,4 @@ const CiderBase = {
} }
module.exports = CiderBase; module.exports = CiderBase;