Tobias Fazio
Tobias Fazio
Probably because it's kindof a hack and has some issues.
If you're getting "`Error: The specified module could not be found`" try electron-rebuild: ``` npm install --save-dev electron-rebuild .\node_modules\.bin\electron-rebuild.cmd ```
I have already done good titlebar and icon dimming in my own app, I can share that with you if you want. As for windows borders, they're really complicated to...
 The recorder messed up the mouse somehow 🤷♂️ Also it has full screen support
Yeah I have implemented `window.onbeforeunload` / `win.removeAllListeners();` in my own app because I was getting annoying warnings when react autoreloaded. It's a good idea.
There is a problem with this, it's pretty likely you might have other event listeners on the `win` object that you might not want removed just because the webpage reloaded....
Not hard, even if you have a lot of events like this XD: ```javascript win.removeListener("page-title-updated", updateTitle); win.removeListener("maximize", toggleMaximized); win.removeListener("unmaximize", toggleMaximized); win.removeListener("blur", toggleBlurred); win.removeListener("focus", toggleBlurred); win.removeListener("enter-full-screen", toggleFullScreen); win.removeListener("leave-full-screen", toggleFullScreen); ```
Everything including adding and removing the listeners as well as the functions themselves: ```javascript let events = { "page-title-updated": () => (document.getElementById("titlebar-text").innerHTML = document.title), "maximize, unmaximize": () => document.body.classList[win.isMaximized() ?...
There's no magical way, you'll just have to design your own menu ui into the title bar. It's not too hard, but it'll be much easier if you use something...
Yes, I've been frustrated with this problem for a long time, I mentioned it a while ago. It happens on any scaling that isn't a multiple of 100. There isn't...