Skip to content
This repository has been archived by the owner on Sep 10, 2023. It is now read-only.

tkinter:When using light mode everything disappears: texts, images, buttons... #2

Open
youssefhoummad opened this issue Aug 14, 2023 · 6 comments

Comments

@youssefhoummad
Copy link

When using light mode everything disappears: texts, images, buttons...

image

As for when using the dark mode, everything looks perfect
image

@littlewhitecloud
Copy link
Owner

try this?

if mode:
    bg = "#000000"
else:
    bg = "#ffffff"

app.configure(bg=bg)
app.wm_attributes("-transparent", bg)

@youssefhoummad
Copy link
Author

try this?

if mode:
    bg = "#000000"
else:
    bg = "#ffffff"

app.configure(bg=bg)
app.wm_attributes("-transparent", bg)

if i use transparent color i get effect mica but the app became entirely clickthrough, even titlebar.

thanks,

@littlewhitecloud
Copy link
Owner

I think this is the best solution for tkinter, maybe you can try other ui libraries to apply mica mode.

@littlewhitecloud
Copy link
Owner

Can you use the mica alt effect to test the program again.

@youssefhoummad
Copy link
Author

Can you use the mica alt effect to test the program again.

some issue

@littlewhitecloud
Copy link
Owner

Fine, I think it is a problem to use mica material on tkinter.

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

No branches or pull requests

2 participants