nptr / msstyleEditor

an editor for windows visual styles
MIT License
815 stars 56 forks source link

How to make the spacing of caption buttons closer in Windows 11 22H2 #103

Open EpGithub22 opened 1 year ago

EpGithub22 commented 1 year ago

Windows Version: <<Win11 22H2

Question How to make the spacing of caption buttons closer

Things you already tried The above topic edited by using msstyleEditor and Window Style Builder, but it did't work, unfortunetly i missed the ability to code...

Additional context Everything you think helps understanding the question or problem.

Checklist

EpGithub22 commented 1 year ago

Maybe one day someone out there will make it done, thanks🙏

nptr commented 1 year ago

You mean button size so the click area is smaller and the button glyphs are close to each other? Because i think the buttons are right next to each other with no space in between.

I don't know a solution unfortunately. A quick experiment reveals the CLOSEBUTTON + CLOSEBUTTONGLYPH part in DWMWindow seem to have no effect in that regard. Maybe you can find some visual style that achieved what you want and see what they did.

I also saw people mess with HKEY_CURRENT_USER\Control Panel\Desktop\WindowMetrics to reduce the caption bar size and with it the button size.

EpGithub22 commented 1 year ago

Thanks for your advice🙏, what i mean is like caption buttons in MacOS, the frame is square, 1: 1, unlike in Windows 11 - 1:2, the famous theme creator in Deviantart : niivu also knows this topic and suggest me to try the content margin somehow to adjut, i did it in msstyle but it didn't work ( using WSB and MsstyleEditor )...the point here is the frame or spacing of the caption buttons ( minmaxclose ). How to make it 1:1, not default 1:2, 1:2,5....

On Thu, Dec 15, 2022, 20:25 nptr @.***> wrote:

You mean button size so the click area is smaller and the button glyphs are close to each other? Because i think the buttons are right next to each other with no space in between.

I don't know a solution unfortunately. A quick experiment reveals the CLOSEBUTTON + CLOSEBUTTONGLYPH part in DWMWindow seem to have no effect in that regard. Maybe you can find some visual style that achieved what you want and see what they did.

I also saw people mess with HKEY_CURRENT_USER\Control Panel\Desktop\WindowMetrics to reduce the caption bar size and with it the button size.

— Reply to this email directly, view it on GitHub https://github.com/nptr/msstyleEditor/issues/103#issuecomment-1353064541, or unsubscribe https://github.com/notifications/unsubscribe-auth/A4XX27X53T7GWNRORRKYENDWNML4JANCNFSM6AAAAAAS6TG6BQ . You are receiving this because you authored the thread.Message ID: @.***>

EpGithub22 commented 1 year ago

After a few days, it is clear that the spacing of caption buttons determined by the frames ratios, square 1:1 or rectangel 1:2, 1:3, the buttons its self are the contents, therefore the question is how to adjust the frames of the caption buttons ? From rectangel to square