Closed samping closed 2 years ago
Hello, try using Electron version "^9.0.0"
in your package.json, idk why but all versions above seem to not support the custom title bar.
works fine up to 12 with me
Can confirm that it doesn't work with atleast some versions of macOS and electron 11
I can also confirm Electron 12.0.1 and MacOS 10.15.7 does not show the traffic signals for me. Making a frameless window without the custom titlebar package is also not showing the traffic lights like it used to, so some behavior may have changed elsewhere.
I see what's going on here. You must add both titleBarStyle and frame BrowserWindow options in order for the Mac traffic lights to appear. titleBarStyle has no effect on Windows/Linux, but on the Mac, it causes the traffic lights to show.
titleBarStyle: "hiddenInset", frame: false,
@jharrels what about the custom menu? does it work for you on mac?
@Araxeus No, the custom menu does not show on the Mac. Works fine on Windows and Linux using the same code.
Hey guys, any update on this? Just trying to get it working on Catalina. I was on electron 11.0.2 but have tried 9.0.0 and no luck. Works fine on windows. I've followed the example code as well. Has anyone got it working?
@wizzle-discord I finally gave up on it and moved to completely menu-less app, still using electron-custom-titlebar for the titlebar, however.
@Araxeus No, the custom menu does not show on the Mac. Works fine on Windows and Linux using the same code.
The custom menu is not displayed on Mac because on Mac the menu already appears in the upper left, next to the apple logo. This project is made to make that happen.
@AlexTorresDev Is it possible to override this behavior for macOS and keep showing the HTML-based menu? Imperfection is fine since I can fine-tune the layout in CSS.
Motive: I use this library to work around the fact that macOS hides app menu if we disable dock icon.
Desktop (please complete the following information):
can not work in mac