mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-09-04 08:20:25 +02:00
lcl: do not set font color if treeview isn't focused
git-svn-id: trunk@24853 -
This commit is contained in:
parent
92b400b9d8
commit
09124bd436
@ -4528,8 +4528,8 @@ var
|
||||
else
|
||||
Details := ThemeServices.GetElementDetails(ttItemNormal);
|
||||
|
||||
if ((tvoThemedDraw in Options) or
|
||||
(tvoRowSelect in Options)) and IsSelected then
|
||||
if ( (tvoThemedDraw in Options) or
|
||||
(tvoRowSelect in Options) ) and Focused and IsSelected then
|
||||
Canvas.Font.Color := InvertColor(Brush.Color);
|
||||
|
||||
ThemeServices.DrawText(Canvas, Details, AText, NodeRect, DT_CENTER or DT_VCENTER, 0);
|
||||
|
Loading…
Reference in New Issue
Block a user