mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-12 04:36:31 +02:00
lcl: set canvas.font.color if treeview item is selected otherwise we cannot see text anymore (qt,gtk,gtk2)
git-svn-id: trunk@24849 -
This commit is contained in:
parent
7b5a4418e3
commit
37436b5e47
@ -4527,6 +4527,11 @@ var
|
||||
end
|
||||
else
|
||||
Details := ThemeServices.GetElementDetails(ttItemNormal);
|
||||
|
||||
if ((tvoThemedDraw in Options) or
|
||||
(tvoRowSelect in Options)) and IsSelected then
|
||||
Canvas.Font.Color := InvertColor(Brush.Color);
|
||||
|
||||
ThemeServices.DrawText(Canvas, Details, AText, NodeRect, DT_CENTER or DT_VCENTER, 0);
|
||||
end;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user