Giter VIP home page Giter VIP logo

azure-ttk-theme-beautiful-tkinter's Introduction

Azure theme for ttk

The dark theme has arrived!!

Azure theme is a beautiful modern ttk theme inspired by Microsoft's fluent design.

Usage (tkinter)

To use the theme just create a style, import the azure.tcl file, and call the set_theme command to set the theme:

style = ttk.Style(root)
root.tk.call('source', 'azure.tcl')
style.theme_use('azure')

New style elements

Azure theme has a style for every ttk widget, but there are some new widget styles, such as an accent button, toggle switch, and toggle button. You can apply these with the style option

To create an accent button:

button = ttk.Button(root, text='Accent button', style='Accentbutton')

To create a toggle button you need a checkbutton, to which you can apply the style:

togglebutton = ttk.Checkbutton(root, text='Toggle button', style='Togglebutton', variable=var, onvalue=1)

The use of switches is becoming more common these days, so this theme has a toggle switch style, that can be applied to checkbuttons:

switch = ttk.Checkbutton(root, text='Switch', style='Switch', variable=var, onvalue=1)

Design

  • Flat, rounded elements, high contrast
  • Colors: blue #007fff #3398ff and gray #e6e6e6 #cccccc #737373 #333333
  • This theme, unlike many other themes, uses the tk_setPalette procedure to set the background color of the window and the colors of other tkinter widgets.

It's a png-based theme, so like other third-party themes, it's relatively slow

azure-ttk-theme-beautiful-tkinter's People

Contributors

formazione avatar rdbende 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.