LCL: fixed TTreeView selected row's text color when themes are disabled. Patch by Balázs Székely. Issue #28014

git-svn-id: trunk@48916 -
This commit is contained in:
zeljko 2015-05-02 13:50:23 +00:00
parent 11b4b031e8
commit 9c77d7629c

View File

@ -4916,7 +4916,12 @@ var
end
else
if not (tvoThemedDraw in Options) then
Canvas.Font.Color := Font.Color;
begin
//Canvas.Font.Color := Font.Color;
Canvas.Brush.Color := FSelectedColor;
Canvas.Font.Color := InvertColor(Brush.Color);
Canvas.FillRect(NodeRect);
end;
end
else
Details := ThemeServices.GetElementDetails(ttItemNormal);