Code Monkey home page Code Monkey logo

py-window-styles's Introduction

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 (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

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, drop_func)

Hope this package can help in UI development with python

Author: Akash Bora

Also check hPyT package if you want to play with the title bar buttons.

py-window-styles's People

Contributors

akascape avatar littlewhitecloud avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.