TAChart: Fix legend background color for AggPas drawer.

This commit is contained in:
wp_xyz 2021-08-05 23:19:27 +02:00
parent 370b81746a
commit 1702101031

View File

@ -707,10 +707,12 @@ begin
drawer.SetTransparency(Transparency);
try
drawer.Brush := BackgroundBrush;
if BackgroundBrush.Color = clDefault then
drawer.SetBrushColor(ColorToRGB(FOwner.GetDefaultColor(dctBrush)));
if Frame.Visible then begin
drawer.Pen := Frame;
if Frame.Color = clDefault then
drawer.SetPenColor(FOwner.GetDefaultColor(dctFont));
drawer.SetPenColor(ColorToRGB(FOwner.GetDefaultColor(dctFont)));
end else
drawer.SetPenParams(psClear, clTAColor);
r := AData.FBounds;