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

pywinstyes.set_opacity(widget_id, value=0.5)

Make a color transparent inside widget

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

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.7.tar.gz (9.3 kB view details)

Uploaded Source

Built Distribution

pywinstyles-1.7-py3-none-any.whl (9.7 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for pywinstyles-1.7.tar.gz
Algorithm Hash digest
SHA256 61dfc85cf951181a78bc041cda2956fc91f97f61600a6cbcfab2220338cbdffd
MD5 76e5beeb0ef0f7c6c4455fbca5062491
BLAKE2b-256 da332faa88545ee4f15a15b3a7059c3e04b11e7820fca85430ba894f09880da4

See more details on using hashes here.

File details

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

File metadata

  • Download URL: pywinstyles-1.7-py3-none-any.whl
  • Upload date:
  • Size: 9.7 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.7-py3-none-any.whl
Algorithm Hash digest
SHA256 ad36171dff8434819470d2ae6092ad9c0b8edef022ec8fb2f6264ee7d6fc4033
MD5 da5e89f73d4fb1f65267d6a08aa96a78
BLAKE2b-256 56f73dabb13e2a0810c4a9164127277ed5c6aa3d1022fb0d817994a4a63224d1

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