ExplorerPatcher
ExplorerPatcher copied to clipboard
[Request] Add option for smaller corner radius for windows
ExplorerPatcher currently provides an option to disable corner roundness for all windows. However, Windows 11 also supports a DWM flag for smaller corner radius (4px), which I consider to be a great balance between overall Windows 11 rounded esthetics, and the practicality of sharp square corners.
I tried to achieve such effect using Autohotkey script, by registering a hook on Window focus event and then calling this method:
DllCall("dwmapi\DwmSetWindowAttribute", "ptr", hwnd, "int", DWMWA_WINDOW_CORNER_PREFERENCE, "int*", DWMWCP_ROUNDSMALL, "int", 4)
And it kinda works, but results in windows losing their drop shadows (you could see only a hint of it on the bottom):
From this discussion I figured out that ExplorerPatcher uses a better method of disabling rounded corners, without the drawback of missing drop shadows. But I have no idea how to use such method in Autohotkey script.
Is there any change of getting support for smaller corner roundness in the ExplorerPatcher itself? Thanks