Browse Source

Comments on dark mode

Source commit: 4547cf79d162d68c449b78bf759c0d55d495e9bc
Martin Prikryl 5 năm trước cách đây
mục cha
commit
f25eb485f6
1 tập tin đã thay đổi với 5 bổ sung1 xóa
  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;