Open sirpooya opened 4 years ago
@sirpooya from the initial title of your issue, I'm not entirely sure if you don't know this is already supported (see api docs / --title-bar-style), or if you do and what you're asking for is to change the defaults.
I like the idea, but I don't have a Mac to fiddle with it and see how it behaves. I'll happily merge a PR checking these three boxes:
hidden
or hiddenInset
or hiddenInset
or customButtonsOnHover
? (Electron docs)--title-bar-style
) notes you need custom, site-specific CSS for that. Do we really?And once these are clear,
@mention
them asking for their feedback and potential undesirable side-effectsHi @sirpooya did you get it to work? If so how?
Cheers
I think this can be cloes due to:
nativefier --name "Google" https://google.com --title-bar-style 'hiddenInset' --inject ./style.css
style.css content: ` body { -webkit-app-region: drag; }
/ make class elements draggable / .aside-brand-wrapper { -webkit-app-region: drag; padding-top: 5px; }
div#kt_header { -webkit-app-region: drag; }
/ make element with ID not draggable / div#kt_aside_menu_wrapper { -webkit-app-region: no-drag!important; }
div#kt_content { -webkit-app-region: no-drag!important; }
`
nativefier --help
and https://github.com/jiahaog/nativefier/blob/master/docs/api.md , no existing option fits my needs.Problem statement After Build, the App has the default OS Titlebar which is not bad, but It would be much better to be transparent & merge with whole window.
Suggested solution The is an electron app built in Flotato app which transparents the default Titlebar.
Context