Переглянути джерело

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
     begin
       Canvas.Brush.Color := clBtnFace;
       Canvas.Brush.Color := clBtnFace;
       Canvas.Font.Color := clBtnText;
       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;
   end;
 end; {InternalOnDrawItem}
 end; {InternalOnDrawItem}