Description
Is your feature request related to a problem? Please describe.
When creating frameless windows you're required to provide your own UI for window controls. This has multiple problems with consistency and accessibility and requires more work to get close to the UX that is already provided by the native window system.
For example on macOS there are different actions based on how you interact with the window controls ("traffic lights"):
- Unfocused windows makes traffic lights appear gray
- Unfocused windows still respond to mouse events for the traffic lights such as hovering.
- Hovering the traffic lights will display the icons, based on system preference.
- Holding
Alt
/Option
key while clicking on "resize" will maximize the window as opposed to the default fullscreen behavior. - Traffic lights can still be used even if the underlying application becomes unresponsive.
And many more edge-cases that needs to be handled in order to provide native-like experience.
These cases only describes macOS-specific parts, but could easily apply to Windows and Linux as well, which would require more work to provide native-like UI.
Frameless windows also has several problems as outlined in #2549 and described in Electron's documentation
Describe the solution you'd like
Support the ability to set the titlebar style similarly to Electron's titleBarStyle
setting which allows for custom title bars while preserving native window controls in different ways.
Describe alternatives you've considered
I don't believe there are any alternatives and needs to be solved within Tauri.