Browse Source

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 years ago
parent
commit
03f453e299
1 changed files with 5 additions and 0 deletions
  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}