File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed
Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -1476,11 +1476,11 @@ procedure FixVT(VT: TVirtualStringTree; MultiLineCount: Word=1);
14761476 VT.EndUpdate;
14771477 VT.TextMargin := 6 ;
14781478 VT.Margin := 2 ;
1479- // Disable hottracking in non-Vista mode, looks ugly in XP, but nice in Vista
1480- if (toUseExplorerTheme in VT.TreeOptions.PaintOptions) then
1481- VT.TreeOptions.PaintOptions := VT.TreeOptions.PaintOptions + [toHotTrack]
1482- else
1483- VT.TreeOptions.PaintOptions := VT.TreeOptions.PaintOptions - [toHotTrack];
1479+ { $IFNDEF WINDOWS }
1480+ // Disable grid lines, looks ok on Windows with dotted light lines, but not on macOS and Linux
1481+ if (toHotTrack in VT.TreeOptions.PaintOptions) then
1482+ VT.TreeOptions.PaintOptions := VT.TreeOptions.PaintOptions - [toShowHorzGridLines, toShowVertGridLines];
1483+ { $ENDIF }
14841484 VT.OnGetHint := MainForm.AnyGridGetHint;
14851485 VT.OnScroll := MainForm.AnyGridScroll;
14861486 VT.OnMouseWheel := MainForm.AnyGridMouseWheel;
You can’t perform that action at this time.
0 commit comments