Apply some window effects to the Win32 Applications
Project description
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
from win32material import ApplyMica, ApplyAcrylic
# ApplyMica(hwnd, theme, micaalt)
# ApplyAcrylic(hwnd, extend)
ChangeTitlebarColor(hwnd, "#111111")
ChangeBorderColor(hwnd, "#114514")
ChangeTitleColor(hwnd, "#745616")
SetBorderType(hwnd, BORDERTYPE.RECTANGULAR)
SetBorderType(hwnd, BORDERTYPE.ROUND)
SetBorderType(hwnd, BORDERTYPE.SMALLROUND)
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
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file win32material-1.0.7.tar.gz.
File metadata
- Download URL: win32material-1.0.7.tar.gz
- Upload date:
- Size: 3.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.0.1 CPython/3.9.21
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
92d83ff391559c05f4c9da2d5117e8304e3d1e60c7153fd1f75c479198b4aa78
|
|
| MD5 |
f9962595c2076ad4ea0c4f667510e96e
|
|
| BLAKE2b-256 |
c8a5309ed49500ca39869c94cb712f80f16b16d141037fb8212e3217e03b5a7e
|
File details
Details for the file win32material-1.0.7-py3-none-any.whl.
File metadata
- Download URL: win32material-1.0.7-py3-none-any.whl
- Upload date:
- Size: 4.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.0.1 CPython/3.9.21
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
2649bd3b8e12d795bfff420721358ae7a33a479a735f00d1755223e8d291e691
|
|
| MD5 |
20c6778d4b3df096167af43529a34296
|
|
| BLAKE2b-256 |
8891d99e70780ecd21e180f363547d7a5cee465039df96b5d9eb9f311a91e3a5
|