Skip to content

Commit 1c46db7

Browse files
committed
fix: bad text color for selected item in proposal
Refs #2534
1 parent 500c529 commit 1c46db7

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

source/main.pas

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3632,17 +3632,17 @@ function TMainForm.SynCompletionProposalPaintItem(const AKey: string;
36323632

36333633
X1 := X + Space + ImageListMain.WidthForPPI[16, PixelsPerInch] + Space;
36343634
ACanvas.Font.Style := [];
3635-
ACanvas.Font.Color := IfThen(Selected, clWhite, It.LeftColor);
3635+
ACanvas.Font.Color := IfThen(Selected, clHighlightText, It.LeftColor);
36363636
ACanvas.TextOut(X1, Y + 1, It.LeftText);
36373637

36383638
X2 := X1 + FProposalLeftWidth + Space(2);
3639-
ACanvas.Font.Color := IfThen(Selected, clWhite, It.CenterColor);
3639+
ACanvas.Font.Color := IfThen(Selected, clHighlightText, It.CenterColor);
36403640
ACanvas.TextOut(X2, Y + 1, It.CenterText);
36413641

36423642
if not It.CenterText.IsEmpty then begin
36433643
X3 := X2 + ACanvas.TextWidth(It.CenterText) + Space(2);
36443644
ACanvas.Font.Style := [fsItalic];
3645-
ACanvas.Font.Color := IfThen(Selected, clWhite, It.RightColor);
3645+
ACanvas.Font.Color := IfThen(Selected, clHighlightText, It.RightColor);
36463646
ACanvas.TextOut(X3, Y + 1, It.RightText);
36473647
end;
36483648

0 commit comments

Comments
 (0)