【问题标题】:How to make a original controls in electrom frameless window in macOS?如何在 macOS 的电子无框窗口中制作原始控件?
【发布时间】:2020-12-05 15:20:43
【问题描述】:

在 macOS 上运行的一些使用 Electron 制作的应用程序没有标题。但我们总能看到一些控件。如何在macOS应用中制作控件(原创)?

(电子)像 Typora,

我们可以看到一些控件。

【问题讨论】:

    标签: javascript html node.js electron


    【解决方案1】:

    我像 Typora 一样访问过Electron Docs(BrowserWindow) 使用它并将其粘贴到 main.js

    if(platform == 'darwin') {
        mainWindow.setWindowButtonVisibility(true)
    }
    

    【讨论】:

      猜你喜欢
      • 2021-05-14
      • 2018-06-14
      • 1970-01-01
      • 1970-01-01
      • 2016-09-27
      • 1970-01-01
      • 2019-12-26
      • 1970-01-01
      • 2016-11-12
      相关资源
      最近更新 更多