This commit is contained in:
parent
c483c5f042
commit
a6adca6696
9 changed files with 105 additions and 9 deletions
|
|
@ -52,8 +52,8 @@ static void detect_darktheme(MwLL handle) {
|
|||
t = dw ? 0 : 1;
|
||||
|
||||
if(t && DwmSetWindowAttribute != NULL) {
|
||||
LPARAM style = GetWindowLongPtr(handle->gdi.hWnd, GWL_STYLE);
|
||||
if(!(style & WS_CHILD)) MwLLSetDarkTheme(handle, 1);
|
||||
// LPARAM style = GetWindowLongPtr(handle->gdi.hWnd, GWL_STYLE);
|
||||
// if(!(style & WS_CHILD)) MwLLSetDarkTheme(handle, 1);
|
||||
}
|
||||
|
||||
MwLLDispatch(handle, dark_theme, &t);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue