瀏覽代碼

Bug 1810: Name of the selected directory in tree is dark on dark background in dark mode

https://winscp.net/tracker/1810

Source commit: 761feff907362c1597165a449244743e9e0f4158
Martin Prikryl 6 年之前
父節點
當前提交
03f453e299
共有 1 個文件被更改,包括 5 次插入0 次删除
  1. 5 0
      source/packages/filemng/CustomDriveView.pas

+ 5 - 0
source/packages/filemng/CustomDriveView.pas

@@ -387,6 +387,11 @@ begin
     begin
       Canvas.Brush.Color := clBtnFace;
       Canvas.Font.Color := clBtnText;
+    end
+      else
+    if Node.Selected and (not Self.Focused) and DarkMode then
+    begin
+      Canvas.Font.Color := Font.Color;
     end;
   end;
 end; {InternalOnDrawItem}