相关疑难解决方法(0)

Linux 上的透明 Windows (Electron)

在 Electron 中创建新的 BrowserWindow 时使用透明参数并将其设置为 true 通常会给窗口一个透明的背景......但在 Linux 上,我的知识并非如此

现在我听说你可以设置一些命令行参数......但这不起作用......它只是显示黑色或白色无论如何......

// Should set the commandLine arguments and work...

const {app} = require('electron')

app.commandLine.appendSwitch('enable-transparent-visuals');
app.commandLine.appendSwitch('disable-gpu');
Run Code Online (Sandbox Code Playgroud)

现在我听说这不是电子的问题,而是硬件的问题......但我只需要确保因此创建这个问题!

html javascript npm electron

11
推荐指数
2
解决办法
3848
查看次数

标签 统计

electron ×1

html ×1

javascript ×1

npm ×1