# py-window-styles
**Repository Path**: WitOpenSource/py-window-styles
## Basic Information
- **Project Name**: py-window-styles
- **Description**: No description available
- **Primary Language**: Python
- **License**: CC0-1.0
- **Default Branch**: main
- **Homepage**: None
- **GVP Project**: No
## Statistics
- **Stars**: 0
- **Forks**: 0
- **Created**: 2025-10-16
- **Last Updated**: 2025-10-16
## Categories & Tags
**Categories**: Uncategorized
**Tags**: None
## README
# py-window-styles
Customize your UI window with awesome built-in Windows 11 header styles and themes.
**Windows 10 is also supported (only themes).**

## Supported UI Libraries
- Tkinter
- Customtkinter
- PyQt
- PySide
- WxPython
- Pygame
- Kivy
- PySimpleGUI
- DearPyGui
- more...
[
](https://github.com/Akascape/py-window-styles/blob/main/Example_Documentation.md)
## Installation
```
pip install pywinstyles
```
[
](https://pypi.org/project/pywinstyles)
[
](https://pepy.tech/project/pywinstyles)
## Apply Window Styles/Themes
```python
import pywinstyles
...
pywinstyles.apply_style(window, style)
...
```
| Style Name | Preview (may vary with diffrent windows versions) |
|-----------| ------------|
| mica |  |
| acrylic |  |
| aero (GPU Heavy) | |
| transparent (GPU Heavy) |  |
| optimised |  |
| win7 |  |
| inverse |  |
| native |  |
| popup |  |
| dark |  |
| normal | No Change |
## Apply Custom Window Colors (Only works in windows 11)

### Change Title Bar Color
```python
pywinstyles.change_header_color(window, color="#00524d")
```
### Change Title Text Color
```python
pywinstyles.change_title_color(window, color="white")
```
### Change Border Color
```python
pywinstyles.change_border_color(window, color="#00ffff")
```
### Get Windows Accent Color
```python
default_color = pywinstyles.get_accent_color() # returns hex color string
```
### Set opacity of individual widgets
```python
pywinstyles.set_opacity(widget_id, value=0.5)
```
### Make a color transparent inside widget
```python
pywinstyles.set_opacity(widget_id, color="white")
```
### Add file DND feature to widgets
```python
def drop_func(file):
print(file)
pywinstyles.apply_dnd(widget_id, drop_func)
```
**Hope this package can help in UI development with python**
**Author: Akash Bora**
Also check [hPyT](https://github.com/Zingzy/hPyT) package if you want to play with the title bar buttons.