Lepton
Lepton copied to clipboard
Toggling Menu Bar Visibility
Having the option to hide the menu bar will make the interface look much better on both Linux and Windows.
@mustapha-hadid Can you elaborate that, like a screenshot? Thanks!
I'm happy to help
From what I've seen, there's a native option to AutoHideMenuBar on most recent versions of electron. A line like that could be added on the main.js
file:
const mainWindow = new BrowserWindow({
// ...
autoHideMenuBar: true,
// ...
})
Perhaps this value could be changed depending on the value of a new key on .leptonrc
? A similar feature has been implemented by Simplenote, in this commit in case you want a reference.
I tried making the change I mentioned above myself to contribute to the project, but I have zero experience with javascript and ended up not being able to solve dependencies with yarn
. Either way, I hope this helps!