8000 GitHub - deminimis/tkinter_minimal_styles: A quick and easy way to implement modern, flat, dark and light themes for tkinter. · GitHub
[go: up one dir, main page]

Skip to content

About

A quick and easy way to implement modern, flat, dark and light themes for tkinter.

Topics

Resources

Stars

1 star

Watchers

1 watching

Forks

Latest commit

 

History

13 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 

Repository files navigation

tkinter minimal styles

A quick and beginner level way to get modern, flat, dark and light theme on tkinter.

You can easily change the colors at the top to customize.

Instructions

  1. Copy the styles.py file and place it in the main directory of your new project.

  2. In your main Python script, import the styles module. After creating your main application window, call the styles.apply_theme() function and save the returned color palette.

  • You can select the theme by passing a mode argument:
    palette = styles.apply_theme(root, mode='dark')
  1. Use the saved palette dictionary to configure the colors of any other windows (like Toplevel pop-ups) or custom widgets. This ensures your entire application has a consistent look and feel.
  • Example:
    new_window = tk.Toplevel(root)
    new_window.configure(background=palette["BG"])

Samples

Dark Picture

Dark Picture

About

A quick and easy way to implement modern, flat, dark and light themes for tkinter.

Topics

Resources

Stars

1 star

Watchers

1 watching

Forks

Releases

Sponsor this project

Contributors

Languages

0