Skip to main content

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

Metadata

Release files for win32material 1.0.7

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for win32material 1.0.7
File Size Uploaded
win32material-1.0.7.tar.gz 3.8 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for win32material 1.0.7
File Interpreter ABI Platform
win32material-1.0.7-py3-none-any.whl Python 3 none any Details

Total release size: 8.3 kB

Release files / win32material-1.0.7.tar.gz

Download URL win32material-1.0.7.tar.gz
Size 3.8 kB
Tags Source
SHA-256 checksum
How to use checksums
92d83ff391559c05f4c9da2d5117e8304e3d1e60c7153fd1f75c479198b4aa78
BLAKE2b-256 checksum
How to use checksums
c8a5309ed49500ca39869c94cb712f80f16b16d141037fb8212e3217e03b5a7e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.0.1 CPython/3.9.21

Release files / win32material-1.0.7-py3-none-any.whl

Download URL win32material-1.0.7-py3-none-any.whl
Size 4.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
2649bd3b8e12d795bfff420721358ae7a33a479a735f00d1755223e8d291e691
BLAKE2b-256 checksum
How to use checksums
8891d99e70780ecd21e180f363547d7a5cee465039df96b5d9eb9f311a91e3a5
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.0.1 CPython/3.9.21

Release history Release notifications | RSS feed

This release

1.0.7 This release

2 release files

1.0.6

2 release files

1.0.5

2 release files

1.0.4

2 release files

1.0.3

2 release files

1.0.2

1 release file

1.0.1

1 release file

1.0.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page