https://github.com/littlewhitecloud/win32material
Apply some window effects to the Win32 Applications
https://github.com/littlewhitecloud/win32material
acrylic alt c cplusplus effect fluent material mica microsoft package python win32 window windows
Last synced: 5 months ago
JSON representation
Apply some window effects to the Win32 Applications
- Host: GitHub
- URL: https://github.com/littlewhitecloud/win32material
- Owner: littlewhitecloud
- License: mit
- Created: 2023-09-03T07:50:06.000Z (about 2 years ago)
- Default Branch: main
- Last Pushed: 2025-01-10T14:58:11.000Z (9 months ago)
- Last Synced: 2025-01-20T21:54:22.456Z (9 months ago)
- Topics: acrylic, alt, c, cplusplus, effect, fluent, material, mica, microsoft, package, python, win32, window, windows
- Language: Python
- Homepage:
- Size: 299 KB
- Stars: 19
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# 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
```console
pip install win32material --user
```## Help
How to get the hwnd of the window?
```python
from ctypes import windll, c_char_p
hwnd = windll.user32.FindWindowW(c_char_p(None), "{Your window name}")
```## Gallery



```python
from win32material import ApplyMica, ApplyAcrylic# ApplyMica(hwnd, theme, micaalt)
# ApplyAcrylic(hwnd, extend)
``````python
ChangeTitlebarColor(hwnd, "#111111")
```
```python
ChangeBorderColor(hwnd, "#114514")
```
```python
ChangeTitleColor(hwnd, "#745616")
```
```python
SetBorderType(hwnd, BORDERTYPE.RECTANGULAR)
```
```python
SetBorderType(hwnd, BORDERTYPE.ROUND)
```
```python
SetBorderType(hwnd, BORDERTYPE.SMALLROUND)
```
### Thanks
Get the idea of applying mica from [https://github.com/marticliment/win32mica/](https://github.com/marticliment/win32mica/)
And some other ideas from [https://github.com/Akascape/py-win-styles](https://github.com/Akascape/py-window-styles)