lvwLog.Canvas.Brush.Style := bsSolid;
if Item.Selected then begin
- lvwLog.Canvas.Brush.Color := clHighlight
+ if lvwLog.Focused then
+ lvwLog.Canvas.Brush.Color := clHighlight
+ else
+ lvwLog.Canvas.Brush.Color := clBtnFace;
end else begin
lvwLog.Canvas.Brush.Color := Pref.BgColor;
end;
lvwLog.Canvas.DrawFocusRect(DestRect);
if Item.Selected then
- lvwLog.Canvas.Font.Color := clHighlightText
- else
+ begin
+ if lvwLog.Focused then
+ lvwLog.Canvas.Font.Color := clHighlightText
+ else
+ lvwLog.Canvas.Font.Color := clWindowText;
+ end else
lvwLog.Canvas.Font.Color := Pref.TalkColorH;
lvwLog.Canvas.Refresh;
lvwLog.Canvas.Font.Color := Pref.TalkColorH;
end;
end;
- if Item.Selected then lvwLog.Canvas.Font.Color := clHighlightText;
+ if Item.Selected then
+ begin
+ if lvwLog.Focused then
+ lvwLog.Canvas.Font.Color := clHighlightText
+ else
+ lvwLog.Canvas.Font.Color := clWindowText;
+ end;
lvwLog.Canvas.Refresh;
w := lvwLog.Canvas.TextWidth(SsParser[i]);
lvwLog.Canvas.TextRect(Rect, Rect.Left + x, Rect.Top + 2, SsParser[i]);