Replies: 1 comment
-
|
and to make it light: import ctypes as ct
def light_title_bar(window):
window.update()
DWMWA_USE_IMMERSIVE_DARK_MODE = 20
set_window_attribute = ct.windll.dwmapi.DwmSetWindowAttribute
get_parent = ct.windll.user32.GetParent
hwnd = get_parent(window.winfo_id())
rendering_policy = DWMWA_USE_IMMERSIVE_DARK_MODE
value = 0
value = ct.c_int(value)
set_window_attribute(hwnd, rendering_policy, ct.byref(value), ct.sizeof(value)) |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I've found a function for a dark titlebar online so if you have a dark theme the titlebar is dark:
@Olikonsti
Author
Olikonsti commented on Jan 15, 2022ikonsti commented on Jan 15, 2022
Beta Was this translation helpful? Give feedback.
All reactions