瀏覽代碼

Comments on dark mode

(cherry picked from commit f25eb485f6540f21683a1f86eb29052e9cf2d615)

Source commit: 4384e220e656242b89849fa12567ff380811a870
Martin Prikryl 5 年之前
父節點
當前提交
c47acb9406
共有 1 個文件被更改,包括 5 次插入1 次删除
  1. 5 1
      source/packages/filemng/CustomDirView.pas

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

@@ -1255,9 +1255,13 @@ begin
   if SupportsDarkMode then
   if SupportsDarkMode then
   begin
   begin
     // This enables dark mode - List view itself supports dark mode somewhat even in the our 'Explorer' theme.
     // 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.
     // 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);
     SetWindowTheme(FHeaderHandle, 'ItemsView', nil);
+
     if DarkMode then UpdateDarkMode;
     if DarkMode then UpdateDarkMode;
   end;
   end;