Skip to content

title_bar: Respect Linux titlebar config#47506

Open
mufeedali wants to merge 10 commits intozed-industries:mainfrom
mufeedali:titlebar-config
Open

title_bar: Respect Linux titlebar config#47506
mufeedali wants to merge 10 commits intozed-industries:mainfrom
mufeedali:titlebar-config

Conversation

@mufeedali
Copy link

@mufeedali mufeedali commented Jan 23, 2026

Currently, Zed always places three fixed window buttons (Minimize, Maximize and Close) on the right side of the window in a fixed order ignoring any user configuration or desktop environment preference (like elementary).

This PR adds support for GNOME-style layout strings (minimize:close). By default, we pull it from the gsettings portal, but we also allow manual configuration via title_bar.button_layout config key.

image

Closes #46512

I know it's a relatively large PR for my first one and I'm new to Rust. So, sorry if I've made any huge mistakes. I had just made it for personal use and then decided to try to clean it up and submit it.

I've tested with different configs on Linux. Untested on other platforms, but should have no impact.

If it's not up to par, it's okay, feel free to close :)

Release Notes:

  • Added support for GNOME's window buttons configuration and a config option to customize it

@cla-bot cla-bot bot added the cla-signed The user has signed the Contributor License Agreement label Jan 23, 2026
@zed-community-bot zed-community-bot bot added the first contribution the author's first pull request to Zed. NOTE: the label application is automated via github actions label Jan 23, 2026
@mufeedali mufeedali force-pushed the titlebar-config branch 3 times, most recently from 53d4d14 to 0d25dcf Compare January 24, 2026 11:48
@mufeedali mufeedali marked this pull request as ready for review January 24, 2026 11:50
@mufeedali mufeedali changed the title WIP: feat(window): Respect Linux titlebar config feat(window): Respect Linux titlebar config Jan 24, 2026
@maxdeviant maxdeviant changed the title feat(window): Respect Linux titlebar config title_bar: Respect Linux titlebar config Jan 24, 2026
@mufeedali mufeedali marked this pull request as draft January 28, 2026 14:22
@mufeedali
Copy link
Author

I need to re-think some stuff here. I might have made some fundamental mistakes.

@pfanzola
Copy link

I need to re-think some stuff here. I might have made some fundamental mistakes.

Take your time, hope to see this merged :)

@mufeedali mufeedali marked this pull request as ready for review January 28, 2026 21:14
@mufeedali
Copy link
Author

@pfanzola thanks! should be ready now.

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

Labels

cla-signed The user has signed the Contributor License Agreement first contribution the author's first pull request to Zed. NOTE: the label application is automated via github actions

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Respect titlebar configs

2 participants