+ fix: bring back themed ReBar (Toolbar parent) for Win10 using LightMode (DarkMode not wanted)

This commit is contained in:
RaiKoHoff 2020-09-17 14:03:57 +02:00
parent fb682f27d7
commit e62ac20b46

View File

@ -2672,7 +2672,7 @@ void CreateBars(HWND hwnd, HINSTANCE hInstance)
0,0,0,0,hwnd,(HMENU)IDC_REBAR,hInstance,NULL);
// Theme = false (!) ~ you cannot change a toolbar's color when a visual style is active
InitWindowCommon(Globals.hwndRebar, !IsWindows10OrGreater());
InitWindowCommon(Globals.hwndRebar, !(IsWindows10OrGreater() && IsDarkModeSupported()));
#ifdef D_NP3_WIN10_DARK_MODE
if (IsDarkModeSupported()) {