rdbende / Sun-Valley-ttk-theme

A gorgeous theme for Tkinter/ttk, based on the Sun Valley visual style ✨
https://pypi.org/project/sv-ttk
MIT License
1.99k stars 112 forks source link

small tweaks? #112

Closed littlewhitecloud closed 1 year ago

littlewhitecloud commented 1 year ago

LOL Maybe someone like me often write set_theme("Dark"), so I think we can add .lower() to avoid the check fails. Also think we can use

cls.set_theme("dark" if cls.get_theme() == "light" else "light")

instead of

if cls.get_theme() == "light":
    cls.set_theme("dark")
else:
    cls.set_theme("light")
rdbende commented 1 year ago

Thanks!