Skip to content

Commit c35a35c

Browse files
committed
fix: do not show ugly/solid grid lines on macOS and Linux
1 parent fa4a14a commit c35a35c

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

source/apphelpers.pas

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff 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;

0 commit comments

Comments
 (0)