Closed youngtutorsuk closed 3 months ago
I am not getting this error, but if you got something like this:
That means your window is not focus every time.
how can i solve the issue?
@youngtutorsuk Try aero theme
with aero theme the background and title bar to turn black
Again, I am still not getting the black background.
Also, acrylic works fine on Windows 11. (But it seems that it don't work fine on Windows 10)
Windows 11 Home version 23H2 osbuild 22631.3155
I am using 23H2 22631.2861 and I will update win11 later.
@littlewhitecloud I am also using the same version 23H2 osbuild 22631.3155, this is the acrylic and aero themes:
Acrylic has been modified to reduce gpu usage, but there is a focus out issue with that. But aero is still not changed and uses gpu, so use aero in that case.
@littlewhitecloud I am also using the same version 23H2 osbuild 22631.3155, this is the acrylic and aero themes:
Does it work well? Or what's the meaning of the slight grey?
@littlewhitecloud the window looks a little greyish in this version, that's all. And the focus out removes all the transparency and make it grey.
@littlewhitecloud the window looks a little greyish in this version, that's all. And the focus out removes all the transparency and make it grey.
I see.
Maybe this color 292929
makes the window looks a bit grey.
ChangeDWMAccent(self.HWND, 30, 3, color=0x292929)
Set it to 0x000000
may fix this.
I have just updated windows11 and now it is 22631.3296.
Everythings works as fine as the version below.
with aero theme the background and title bar to turn black
The titlebar will turn black right, but if the background turns black too, I think maybe you used ExtendFrameIntoClientArea. Or the aero theme were not applied.
Acrylic has been modified to reduce gpu usage, but there is a focus out issue with that. But aero is still not changed and uses gpu, so use aero in that case.
Also, the window with acrylic effect may turn grey after focus out, it is legall. Because it can reduce the GPU usage and use less resource when the window is focus out and don't need to draw that. The window with mica effect will also turn grey.
Is there anything wrong?
@littlewhitecloud No
the aero theme turns the background black and acrylic tints everything light grey i have specifically made the window in focus but that hasn't changed it.
@youngtutorsuk I guess you have to turn on the transparency effects
mode in settings.
import customtkinter import os from PIL import Image import pywinstyles
class App(customtkinter.CTk): def init(self): super().init()
if name == "main":
app = App() pywinstyles.apply_style(app, 'acrylic') app.mainloop() self.toplevel_window.focus() not particularly the code but across all the gui's that were previously working with the acrylic window now only appear slightly grey ever since my laptop updated to the latest windows 11 update