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

Custom Titlebar with navite Window-Controls (like in Electron) [feat] #9458

Open
Captainpast opened this issue Apr 13, 2024 · 3 comments
Open

Comments

@Captainpast
Copy link

Describe the problem

May modern apps have content on the same level as the Window-Controls, like in GNOME or Windwos 11.

GNOME Settings:
grafik

Windwos 11 file explorer;
grafik

Describe the solution you'd like

A good solution already exists in ElectronJS with the Window-Controls-Overlay-API for JavaScript and the CSS-Environment-Variables
https://github.com/WICG/window-controls-overlay/blob/main/explainer.md
https://www.electronjs.org/docs/latest/api/browser-window#winsettitlebaroverlayoptions-windows

Alternatives considered

There is already tauri-controls, but this just native-looking Window-Controls and not change with the GTK-Theme

Additional context

No response

@Captainpast
Copy link
Author

With GTK in Linux/Unix the use of gtk::WindowControls (docs.gtk.org) could be a solution, but this is only existed since GTK4 and tao must first ported from GTK3 to 4.

@yemikudaisi
Copy link

For what it's worth, I followed this tutorials for a custom title bar and it worked fine. See screenshot below.
screenshot

@Captainpast
Copy link
Author

Captainpast commented May 6, 2024

@yemikudaisi my problem with this solution is, the Window-Controls does not follow the system Theme on Linux and other platforms.
As I mentioned, tauri-controls is there for easier native-looking Window-Controls, but their also problems with it on Windows (agmmnn/tauri-controls#26)

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