forked from pyrite-dev/milsko
fix
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){
|
if(t && DwmSetWindowAttribute != NULL){
|
||||||
LPARAM style = GetWindowLongPtr(handle->gdi.hWnd, GWL_STYLE);
|
LPARAM style = GetWindowLongPtr(handle->gdi.hWnd, GWL_STYLE);
|
||||||
BOOL v = TRUE;
|
if(!(style & WS_CHILD)) MwLLSetDarkTheme(handle, 1);
|
||||||
if(!(style & WS_CHILD)) DwmSetWindowAttribute(handle->gdi.hWnd, 20, &v, sizeof(v));
|
|
||||||
}
|
}
|
||||||
|
|
||||||
MwLLDispatch(handle, dark_theme, &t);
|
MwLLDispatch(handle, dark_theme, &t);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue