Linux : Towards window decorations in wayland #11004
aki237
started this conversation in
Show and tell
Replies: 1 comment
-
Reference for windows icons: https://learn.microsoft.com/en-us/windows/apps/design/style/segoe-fluent-icons-font#pua-e700-e900 |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I've started dabbling with the zed internals (gpui). I tried enabling the windows window decoration as it didn't have any platform specific controls except for the way the icons (minimize, maximize, close) are rendered. It uses some special reserved Unicode characters which are present in the MS Windows provided Segoe Fluent Icons.
In file
crates/ui/src/components/title_bar/windows_window_controls.rs
The buttons are displayed as expected. But as I'm missing the font, it was rendering garbage.
I wired up some callbacks for the buttons as follows:
Minimize worked
Maximize didn't
Restore didn't
Quit worked.
I've opened a PR to fix the maximized state sync from the toplevel configure event. Which fixes the zoom toggle functionality.
Beta Was this translation helpful? Give feedback.
All reactions