DWMBlurGlass icon indicating copy to clipboard operation
DWMBlurGlass copied to clipboard

Option for Vista-sized titlebar buttons

Open JeBobs opened this issue 9 months ago • 2 comments

Currently, there is only an option to change the titlebar buttons to Windows 7's size, which works great: Image

But it looks wrong when trying to make a Vista-accurate theme, as Vista had slightly smaller titlebar buttons: Image

I've been able to manually edit these values to make it pixel perfect, and it'd be easily achievable by changing these values in CustomButton:

frameY:         20 -> 18
maxbtn_width:   27 -> 25
minbtn_width:   29 -> 26
closebtn_width: 49 -> 44

It would be great if it was added as a dropdown option (Default, Vista, Win7), or at the very least expose the ability to change these values manually. Thank you!

JeBobs avatar Mar 25 '25 20:03 JeBobs

unrelated to the bug, but how'd you change the values to get accurate buttons? i'd love to do this myself

Translunary avatar May 24 '25 06:05 Translunary

I used IDA to find the values while cross referencing the source and HxD to make the final edits, you can edit it yourself by using HxD on DWMBlurGlassExt.dll. Make a backup, then open the dll and press Ctrl+G, paste each location value, then change the bytes:

6EE80: 00 00 A0 41 -> 00 00 90 41 (frameY) 6EE84: 00 00 D8 41 -> 00 00 C8 41 (maxbtn_width) 6EE88: 00 00 E8 41 -> 00 00 D0 41 (minbtn_width) 6EE8C: 00 00 44 42 -> 00 00 30 42 (closebtn_width)

they're just float values, so in reality you can just select the 4 bytes and use the data inspector on the right to change the number to whatever you'd like. Hope this helps!

JeBobs avatar Jun 12 '25 16:06 JeBobs