Skip to main content

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

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

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

win32material-1.0.7.tar.gz (3.8 kB view details)

Uploaded Source

Built Distribution

win32material-1.0.7-py3-none-any.whl (4.5 kB view details)

Uploaded Python 3

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

Hashes for win32material-1.0.7.tar.gz
Algorithm Hash digest
SHA256 92d83ff391559c05f4c9da2d5117e8304e3d1e60c7153fd1f75c479198b4aa78
MD5 f9962595c2076ad4ea0c4f667510e96e
BLAKE2b-256 c8a5309ed49500ca39869c94cb712f80f16b16d141037fb8212e3217e03b5a7e

See more details on using hashes here.

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

Hashes for win32material-1.0.7-py3-none-any.whl
Algorithm Hash digest
SHA256 2649bd3b8e12d795bfff420721358ae7a33a479a735f00d1755223e8d291e691
MD5 20c6778d4b3df096167af43529a34296
BLAKE2b-256 8891d99e70780ecd21e180f363547d7a5cee465039df96b5d9eb9f311a91e3a5

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page