mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-09-29 20:09:37 +02:00
lcl: prepare TreeView canvas before theme drawing if theme has transparent parts for this detail and RowSelect = true (issue #0018244)
git-svn-id: trunk@29896 -
This commit is contained in:
parent
40bc5733f4
commit
9d6104fc81
@ -4558,6 +4558,11 @@ var
|
||||
Details := ThemeServices.GetElementDetails(ttItemSelected)
|
||||
else
|
||||
Details := ThemeServices.GetElementDetails(ttItemSelectedNotFocus);
|
||||
if ThemeServices.HasTransparentParts(Details) then
|
||||
begin
|
||||
Canvas.Brush.Color := BackgroundColor;
|
||||
Canvas.FillRect(ARect);
|
||||
end;
|
||||
ThemeServices.DrawElement(Canvas.Handle, Details, ARect, nil);
|
||||
Exit;
|
||||
end
|
||||
|
Loading…
Reference in New Issue
Block a user