mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-15 09:39:54 +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
|
end
|
||||||
else
|
else
|
||||||
Details := ThemeServices.GetElementDetails(ttItemNormal);
|
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);
|
ThemeServices.DrawText(Canvas, Details, AText, NodeRect, DT_CENTER or DT_VCENTER, 0);
|
||||||
end;
|
end;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user