Skip to content
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

[feat] Keep the App's function buttons and customize the toolbar #11672

Closed
wangxg422 opened this issue Nov 13, 2024 · 1 comment
Closed

[feat] Keep the App's function buttons and customize the toolbar #11672

wangxg422 opened this issue Nov 13, 2024 · 1 comment

Comments

@wangxg422
Copy link

Describe the problem

How to make the function buttons (maximize, minimize, close) on the toolbar keep the characteristics of their respective operating systems (windows on the right, macos on the left), while being able to customize the toolbar. Because when developing an APP, the layout of the APP sometimes has a menu bar on the left and display content on the right, without a toolbar, but the three buttons in the toolbar (maximize, minimize, close) need to be retained.

Describe the solution you'd like

Refine the setting of "decorations: false". When it is currently set to false, the toolbar and function buttons disappear at the same time. It is expected to add a reserved operation button
PixPin_2024-11-13_17-46-33

Alternatives considered

No response

Additional context

No response

@FabianLars
Copy link
Member

On macOS you can use the titlebarStyle window config and for Windows we're waiting on an update from WebView2 tracked here #4531 / MicrosoftEdge/WebView2Feedback#4532

These configs will keep just the control buttons while removing the titlebar (so you can create your own if needed)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants