Skip to main content

Customize window styles in windows 11

Project description

py-window-styles

Customize your UI window with awesome built-in Windows 11 header styles and themes. Windows 10 is also supported (only themes).

Screenshot

Supported UI Libraries

  • Tkinter
  • Customtkinter
  • PyQt
  • PySide
  • WxPython
  • Pygame
  • Kivy
  • PySimpleGUI
  • more...

Installation

pip install pywinstyles

Apply Window Styles/Themes

import pywinstyles
...
pywinstyles.apply_style(window, style)
...
Style Name Preview
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

pywinstyles.change_header_color(window, color="#00524d")  

Change Title Text Color

pywinstyles.change_title_color(window, color="white") 

Change Border Color

pywinstyles.change_border_color(window, color="#00ffff")

Get Windows Accent Color

default_color = pywinstyles.get_accent_color() # returns hex color string

Set opacity of individual widgets

pywinstyles.set_opacity(widget_id, value=0.5)

Make a color transparent inside widget

pywinstyles.set_opacity(widget_id, color="white")

Add file DND feature to widgets

def drop_func(file):
  print(file) 
pywinstyles.apply_dnd(widget_id, frop_func)

Hope this package can help in UI development with python

Author: Akash Bora

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

pywinstyles-1.8.tar.gz (10.5 kB view details)

Uploaded Source

Built Distribution

pywinstyles-1.8-py3-none-any.whl (10.5 kB view details)

Uploaded Python 3

File details

Details for the file pywinstyles-1.8.tar.gz.

File metadata

  • Download URL: pywinstyles-1.8.tar.gz
  • Upload date:
  • Size: 10.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.10.0

File hashes

Hashes for pywinstyles-1.8.tar.gz
Algorithm Hash digest
SHA256 7a087b1f45ef8d572b440712817dbbef8ae90793ab7fcc51b060851d2d6f301c
MD5 a474b22385d553f3caf388271c745ba0
BLAKE2b-256 095bc3356335b7f60a940c3e9c1aa6f3b6407af10b26c763739933c500937dbe

See more details on using hashes here.

File details

Details for the file pywinstyles-1.8-py3-none-any.whl.

File metadata

  • Download URL: pywinstyles-1.8-py3-none-any.whl
  • Upload date:
  • Size: 10.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.10.0

File hashes

Hashes for pywinstyles-1.8-py3-none-any.whl
Algorithm Hash digest
SHA256 17d89c6bc91569b676b71c00400ec958548302809858966c4cf447bb16a7e407
MD5 d71be77a84bf493d497e5bed0eb0e6c5
BLAKE2b-256 9937be473b2d3bde387ef39e57b3ebabadfaaf0627333814e0c3813dac686f5e

See more details on using hashes here.

Supported by

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