-
Notifications
You must be signed in to change notification settings - Fork 579
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Native window button (Contribution enquiries) #59
Comments
Doesn't Electron itself provide these and overlay them onto frameless apps? |
@developit I dont think so, or I didnt find this. |
I think it works only for OSX, using |
I was trying to avoid reimplementing this but it might be unavoidable. Does anyone know for sure if this is completely broken in Windows? I know in OSX, the "traffic lights" work automatically except when frameless windows are used. |
I don't know on windows. It does not work for sure in Lubuntu. |
@connors dont know if the term "broken" is the good one, but at least frameless windows are definitively not the same as the OSX only Maybe that it can be good to implement this for anyone that would like to build a frameless windows with some additional control buttons ? |
OS X has three types of frameless windows: The difference between |
Didnt find add close, minimize, maximize buttons in the title bar in photon. That's why this issue aims to discuss about.
Their are 2 aspects abouts this:
1. Theme integration
Theme integration would allow offer way to create these buttons. E.g (view top right buttons):
That raises a problem: each desktop/OS has it's one button layout, colors, styles...
That's why buttons should be themable through custom classes e.g
action-close
but they should remain customable if he developer wants to do some weird button implementations (for instance the google chrome button that allows to login google account from the title bar).2. Javscript integration
The second question. I'm only contributing, I have no precise idea of your goal with photon. Do you want to provide a feature rich javascript environment ?
In this case we could offer some shortcut to make a button closing the window (show bellow for example).
Implementation example
I provided an example of implementation:
gsouf@0313ccc
The buttons are defined in the header next to the title: gsouf@0313ccc#diff-434fc7c230c4addfe39300dedd6074edR21
Buttons can be bind automatically from markup: gsouf@0313ccc#diff-441d9fb1b9d314b7b48820c2890acc76R20
Please note that the implementation I provided is only a draft that was developed fastly in order to provide a concret example.
The text was updated successfully, but these errors were encountered: