valinet / WinCenterTitle

WinCenterTitle is a simple tool that allows you to center align the text in Windows 10 titlebars, the same way it was in Windows 8, 8.1, or even 3.1.
GNU General Public License v2.0
155 stars 16 forks source link

Is it possible to center align UWP apps' Title? #3

Open shinywong opened 4 years ago

shinywong commented 4 years ago

It would be nicer if UWP apps' Title can also be center aligned.

valinet commented 4 years ago

I'd be great, but unfortunately, I don't know of any method at the moment. I think, although I am not 100% sure, that UWP applications custom draw their title bars, and if that is the case, we'd have to look for a way to do it with the help of the framework that powers this. I do not have that much insight, sorry.

adamlahbib commented 2 years ago

image https://docs.microsoft.com/en-us/windows/apps/design/shell/title-bar

doesn't this help?

valinet commented 2 years ago

I don’t know, I am not familiar with the API… nevertheless, if the title text is custom drawn, one would have to inject the processes or cold patch the library that draws those, if any.

Window decorations hardly are a compositor’s task these days unfortunately, so that’s why it’s pretty hard to do the kind of job WinCenterTitle tries to do.