Skip to content

Commit 43f1f0c

Browse files
authored
Merge b9c4580 into 40d8f5b
2 parents 40d8f5b + b9c4580 commit 43f1f0c

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

Src/StartMenu/StartMenuDLL/StartMenuDLL.cpp

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1872,6 +1872,7 @@ static LRESULT CALLBACK SubclassTaskBarProc( HWND hWnd, UINT uMsg, WPARAM wParam
18721872
ComputeTaskbarColors(data);
18731873
WINCOMPATTRDATA attrData={0x13,&data,sizeof(data)};
18741874
SetWindowCompositionAttribute(hWnd,&attrData);
1875+
if(!IsAppThemed()) {UpdateTaskBars(TASKBAR_UPDATE_TEXTURE);}
18751876
return res;
18761877
}
18771878
if ((uMsg==WM_DWMCOLORIZATIONCOLORCHANGED || uMsg==WM_SETTINGCHANGE) && taskBar && taskBar->bCustomLook && SetWindowCompositionAttribute && GetWinVersion()<WIN_VER_WIN10)
@@ -1932,7 +1933,7 @@ static LRESULT CALLBACK SubclassTaskBarProc( HWND hWnd, UINT uMsg, WPARAM wParam
19321933
WINCOMPATTRDATA attrData={0x13,&data,sizeof(data)};
19331934
SetWindowCompositionAttribute(hWnd,&attrData);
19341935
}
1935-
if (g_TaskbarTexture && IsAppThemed())
1936+
if (g_TaskbarTexture)
19361937
{
19371938
// draw taskbar background (behind start button and separators)
19381939
PAINTSTRUCT ps;
@@ -2383,13 +2384,9 @@ void UpdateTaskBars( TUpdateTaskbar update )
23832384
}
23842385
}
23852386
}
2386-
else if (GetWinVersion()<WIN_VER_WIN10 && (!bDefColor || !bDefOpacity))
2387+
else
23872388
{
2388-
if (bDefColor && GetWinVersion()>WIN_VER_WIN7)
2389-
{
2390-
color=GetSystemGlassColor8();
2391-
color=((color&0xFF)<<16)|(color&0xFF00)|((color>>16)&0xFF);
2392-
}
2389+
color=GetSysColor(COLOR_BTNFACE);
23932390
BITMAPINFO bi={0};
23942391
bi.bmiHeader.biSize=sizeof(BITMAPINFOHEADER);
23952392
bi.bmiHeader.biWidth=bi.bmiHeader.biHeight=32;
@@ -3012,7 +3009,10 @@ static void InitStartMenuDLL( void )
30123009
if (GetWinVersion()<=WIN_VER_WIN81)
30133010
g_DrawThemeBackgroundHook=SetIatHook(module,"uxtheme.dll","DrawThemeBackground",DrawThemeBackground2);
30143011
g_DrawThemeTextHook=SetIatHook(module,"uxtheme.dll","DrawThemeText",DrawThemeText2);
3015-
g_DrawThemeTextExHook=SetIatHook(module,"uxtheme.dll","DrawThemeTextEx",DrawThemeTextEx2);
3012+
if (IsAppThemed())
3013+
{
3014+
g_DrawThemeTextExHook=SetIatHook(module,"uxtheme.dll","DrawThemeTextEx",DrawThemeTextEx2);
3015+
}
30163016
g_DrawThemeTextCtlHook=SetIatHook(GetModuleHandle(L"comctl32.dll"),"uxtheme.dll","DrawThemeText",DrawThemeText2);
30173017
if (GetWinVersion()>=WIN_VER_WIN10)
30183018
g_SetWindowCompositionAttributeHook=SetIatHook(module,"user32.dll","SetWindowCompositionAttribute",SetWindowCompositionAttribute2);

0 commit comments

Comments
 (0)