Closed Nigacatch closed 1 month ago
Are your photos semi-transparent?
I suggest drawing an opaque rectangle/background under your photos
@marticliment, Thank you for your reply! No, the photos are not semi-transparent. You can see the original photo in the below:
I drew two black and white rectangles under the photo, but it didn't change:
What should I do? thank you.
It is interesting that the black rectangle is also showing tinted...
I have never seen this issue, could it be caused by customtkinter? Please try to draw the same picture on plain tkinter, with win32mica
@marticliment, The problem still persists...
it's very interesting!
Try to do something: Tk draws transparency by specifying the "transparency" color, and then rendering it transparent on the window. Any text, image or element that contains that color will have that color rendered transparent.
See the following code:
Try to add the app.configure and the app.wm_attributes, but set a random color to the color, instead of black
@marticliment, The above code is considered an improvement, but unfortunately, the style of the program is messed up...
By applying the code above:
Without applying the code above:
Try to set the transparent background to #16191e, which is the background color used by your Tkinter flavour
@marticliment, 'ApplyMica' is applied to the background but not to the widgets...
After:
Before:
I am afraid I then don't know what is happening. looks like customtkinter is using a different method to render transparencies, and that it is affecting your image, and virtually any control.
I am afraid I can't help you with that, since I don't know how customtkinter works here.
@marticliment, You have helped a lot so far and I am grateful to you! I will message the owner of 'customtkinter' and ask him to look at this issue and explain if he can.
@marticliment... With the help of @Akascape, the problem is finally solved and that's great.
Hello @marticliment, thank you very much for making this library because it has a great impact on the appearance of the program! I use the following code to apply Mica style:
This code is applied globally to the entire program and all widgets. Now my problem is that I want to put several photos in the program, but the color of the photo gets mixed up... For example, look at the photo below, both photos are the same, but the colors are different:
Now the question is, how can I fix this problem and 'ApplyMica' does not affect the photos?