win32mica icon indicating copy to clipboard operation
win32mica copied to clipboard

How to disable 'ApplyMica' after use - Or - How to disable 'ApplyMica' for a specific widget in 'customtkinter'?

Open Nigacatch opened this issue 6 months ago • 7 comments

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:

class App(customtkinter.CTk):
    def __init__(self):
        super().__init__()
        self.title("Talayar")
        self.geometry(center(self, 720, 1280))
        self.resizable(False, False)
        customtkinter.set_appearance_mode('dark')
        mode = MicaTheme.DARK 
        style = MicaStyle.ALT 
        hwnd = self.frame()  
        ApplyMica(HWND=hwnd, Theme=mode, Style=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:

pic

Now the question is, how can I fix this problem and 'ApplyMica' does not affect the photos?

Nigacatch avatar Jul 30 '24 12:07 Nigacatch