This commit is contained in:
parent
48b847093b
commit
6f9b3c12a7
1 changed files with 1 additions and 2 deletions
|
|
@ -36,8 +36,7 @@ static void detect_darktheme(MwLL handle) {
|
|||
|
||||
if(t && DwmSetWindowAttribute != NULL){
|
||||
LPARAM style = GetWindowLongPtr(handle->gdi.hWnd, GWL_STYLE);
|
||||
BOOL v = TRUE;
|
||||
if(!(style & WS_CHILD)) DwmSetWindowAttribute(handle->gdi.hWnd, 20, &v, sizeof(v));
|
||||
if(!(style & WS_CHILD)) MwLLSetDarkTheme(handle, 1);
|
||||
}
|
||||
|
||||
MwLLDispatch(handle, dark_theme, &t);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue