Skip to content

Conversation

littlewhitecloud
Copy link
Contributor

@littlewhitecloud littlewhitecloud commented Jul 26, 2023

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")

Co-authored-by: Akuli <akuviljanen17@gmail.com>
@rdbende rdbende merged commit 0ce7210 into rdbende:main Jul 26, 2023
@rdbende
Copy link
Owner

rdbende commented Jul 26, 2023

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants