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

Title in titlebar not centered #840

Open
felipe-valerio opened this issue Jan 3, 2025 · 2 comments · May be fixed by #841
Open

Title in titlebar not centered #840

felipe-valerio opened this issue Jan 3, 2025 · 2 comments · May be fixed by #841
Labels
Status: Confirmed Verified by someone other than the reporter

Comments

@felipe-valerio
Copy link

felipe-valerio commented Jan 3, 2025

What Happened?

If it's a bug it's for sure minimal, but the title was nicely centered in previous versions of the application, including the picture used in elementary.io and now it's not. Since it's still centered in the other applications that have similar titlebars, it stands out as inconsistent. It seems to have become centered in relation to the space between the buttons, instead of centered in the titlebar.
Captura de tela de 2025-01-03 05 40 37

Steps to Reproduce

  1. Open the Terminal application

Expected Behavior

Centered title

OS Version

7.x (Horus)

Session Type

Classic Session (X11, This is the default)

Software Version

Latest release (I have run all updates)

Log Output

No response

Hardware Info

No response

@jeremypw jeremypw added the Status: Confirmed Verified by someone other than the reporter label Jan 3, 2025
@jeremypw
Copy link
Collaborator

jeremypw commented Jan 3, 2025

This is a consequence of putting the searchbar into the header in the same place as the title. They have to be stacked and in order for them to be the same size the are horizontally expanded to the available space. This makes the title centered on the available space rather than the whole headerbar. A solution to is to not horizontally expand the stack - the headerbar then centers this on itself. However this has the side effect of the searchbar also being contracted to the same size as the title - which may be short. If you make the stack expand when the search bar is showing then you get a visual glitch which the designer may not approve of.

To be honest. I am not sure its worth the effort of trying to fix this. It is barely noticeable except when the window is narrow.

@jeremypw jeremypw linked a pull request Jan 3, 2025 that will close this issue
@jeremypw
Copy link
Collaborator

jeremypw commented Jan 3, 2025

I have pushed a simple fix for the issue but as it changes the appearance of the searchbar it may not be approved.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Status: Confirmed Verified by someone other than the reporter
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants