Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Better Looking Dark mode #122

Open
Czekoloczek opened this issue Jun 12, 2024 · 1 comment
Open

Better Looking Dark mode #122

Czekoloczek opened this issue Jun 12, 2024 · 1 comment
Labels
Enhancement New feature or request

Comments

@Czekoloczek
Copy link

This looks more like Windows 11
image
image

This looks more like Windows 98
image
image

I think you get the idea

@Windows200000
Copy link
Owner

@Czekoloczek Well, feel free to give it a crack. You can define another style in this function:

def set_theme(root, manager, name):
style = ttk.Style(root)
if not hasattr(set_theme, "default_style"):
set_theme.default_style = style.theme_use() # "Themes" is more fitting for the recolour and "Style" for the button style.

If you find something, feel free to just add another elif and I will change the checkbox in settings to be a drop-down.

Keep in mind, that not all Tkinter themes are cross-platform. This list has a quick overview for that.

The default theme Tkinter uses on Windows, the one in your first picture, is called "vista". This theme is Windows-exclusive, as it isn't entirely defined in Tkinter, but rather uses some universal elements built into windows, such as the buttons, which as a consequence, cannot be recolored.

@Windows200000 Windows200000 added the Enhancement New feature or request label Jun 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants