• R/O
  • SSH
  • HTTPS

tortoisesvn: Commit


Commit MetaInfo

Revision28839 (tree)
Zeit2020-04-04 22:06:05
Autorstefankueng

Log Message

better handle the progress control in dark mode.

Ändern Zusammenfassung

Diff

--- trunk/src/Utils/Theme.cpp (revision 28838)
+++ trunk/src/Utils/Theme.cpp (revision 28839)
@@ -258,6 +258,12 @@
258258 SendMessage(hwnd, EM_SETCHARFORMAT, SCF_ALL, (LPARAM)&format);
259259 SendMessage(hwnd, EM_SETBKGNDCOLOR, 0, (LPARAM)format.crBackColor);
260260 }
261+ else if (wcscmp(szWndClassName, PROGRESS_CLASS) == 0)
262+ {
263+ SetWindowTheme(hwnd, L"", L"");
264+ SendMessage(hwnd, PBM_SETBKCOLOR, 0, (LPARAM)darkBkColor);
265+ SendMessage(hwnd, PBM_SETBARCOLOR, 0, (LPARAM)RGB(50, 50, 180));
266+ }
261267 else if (FAILED(SetWindowTheme(hwnd, L"DarkMode_Explorer", nullptr)))
262268 SetWindowTheme(hwnd, L"Explorer", nullptr);
263269 }
@@ -371,6 +377,10 @@
371377 SendMessage(hwnd, EM_SETCHARFORMAT, SCF_ALL, (LPARAM)&format);
372378 SendMessage(hwnd, EM_SETBKGNDCOLOR, 0, (LPARAM)format.crBackColor);
373379 }
380+ else if (wcscmp(szWndClassName, PROGRESS_CLASS) == 0)
381+ {
382+ SetWindowTheme(hwnd, nullptr, nullptr);
383+ }
374384 else
375385 SetWindowTheme(hwnd, L"Explorer", nullptr);
376386 }
Show on old repository browser