Skip to content

Files

Latest commit

 

History

History
61 lines (49 loc) · 2.08 KB

README.md

File metadata and controls

61 lines (49 loc) · 2.08 KB

win32material

Apply some window effects like mica micaalt acrylic to the Win32 Applications. Can also change the window's titlebar color, border type and so on. (Windows 11 only)

Installation

pip install win32material --user

Help

How to get the hwnd of the window?

from ctypes import windll, c_char_p
hwnd = windll.user32.FindWindowW(c_char_p(None), "{Your window name}")

Gallery

image image image

from win32material import ApplyMica, ApplyAcrylic

# ApplyMica(hwnd, theme, micaalt)
# ApplyAcrylic(hwnd, extend)
ChangeTitlebarColor(hwnd, "#111111")

image

ChangeBorderColor(hwnd, "#114514")

image

ChangeTitleColor(hwnd, "#745616")

image

SetBorderType(hwnd, BORDERTYPE.RECTANGULAR)

image

SetBorderType(hwnd, BORDERTYPE.ROUND)

image

SetBorderType(hwnd, BORDERTYPE.SMALLROUND)

image

Thanks

Get the idea of applying mica from https://github.com/marticliment/win32mica/ And some other ideas from https://github.com/Akascape/py-win-styles