Browse Source

Comments on dark mode

(cherry picked from commit f25eb485f6540f21683a1f86eb29052e9cf2d615)

Source commit: 4384e220e656242b89849fa12567ff380811a870
Martin Prikryl 5 years ago
parent
commit
c47acb9406
1 changed files with 5 additions and 1 deletions
  1. 5 1
      source/packages/filemng/CustomDirView.pas

+ 5 - 1
source/packages/filemng/CustomDirView.pas

@@ -1255,9 +1255,13 @@ begin
   if SupportsDarkMode then
   begin
     // This enables dark mode - List view itself supports dark mode somewhat even in the our 'Explorer' theme.
-    // The 'ItemsView' has better dark mode selection color, but on the other hand it does not have dark scrollbars.
+    // The 'ItemsView' has better (Explorer-like) dark mode selection color, but on the other hand it does not have dark scrollbars.
     // win32-darkmode has ugly fix for that (FixDarkScrollBar), which we do not want to employ.
+    // The 'DarkMode_Explorer' uses the standard selection color (bright blue).
+
+    // Enables dark headers:
     SetWindowTheme(FHeaderHandle, 'ItemsView', nil);
+
     if DarkMode then UpdateDarkMode;
   end;