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] windowsOS titleBarStyle configure #7674

Closed
drl990114 opened this issue Aug 22, 2023 · 2 comments
Closed

[feat] windowsOS titleBarStyle configure #7674

drl990114 opened this issue Aug 22, 2023 · 2 comments

Comments

@drl990114
Copy link

drl990114 commented Aug 22, 2023

Describe the problem

https://tauri.app/v1/api/config/#windowconfig.titlebarstyle

In tauri 1.x, It only supports macos,Will it appear on 2. x?

Or is there any other way for me to achieve something similar to TitleBarStyle::Overlay on WindowsOS

Describe the solution you'd like

To achieve something similar to TitleBarStyle::Overlay on WindowsOS

e.g

main_win.title_bar_style(TitleBarStyle::Overlay).hidden_title(true);

Alternatives considered

No response

Additional context

No response

@FabianLars
Copy link
Member

This was talked about a few times for example here #4973 (windows specific) and also in the general/macos issue starting here #2663 (comment) and the tldr is basically that the reason why tauri has that setting on macos but not on windows is because macos itself has system apis for this while windows doesn't. We thought about providing prebuilt html elements (the icons are part of windows' default fonts i think, or at least freely available) but i don't think we can make the DX of that nice enough.

The only you can't do with html/css/js is the new snap overlay added in windows 11, but that's tracked here: #4531

@FabianLars FabianLars closed this as not planned Won't fix, can't repro, duplicate, stale Aug 22, 2023
@drl990114
Copy link
Author

Thanks, sorry I only searched for the term "titleBarStyle" and found no related questions.
I will continue to pay attention and look forward to the release of this feature

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