Lepton icon indicating copy to clipboard operation
Lepton copied to clipboard

Toggling Menu Bar Visibility

Open mhadidg opened this issue 6 years ago • 3 comments

Having the option to hide the menu bar will make the interface look much better on both Linux and Windows.

mhadidg avatar Aug 08 '18 10:08 mhadidg

@mustapha-hadid Can you elaborate that, like a screenshot? Thanks!

hackjutsu avatar Aug 08 '18 17:08 hackjutsu

I'm happy to help

onpaste 20180808-204530

mhadidg avatar Aug 08 '18 17:08 mhadidg

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!

pesader avatar Feb 05 '22 01:02 pesader