mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-09-12 14:00:38 +02:00
TAChart: Fix legend background color for AggPas drawer.
This commit is contained in:
parent
370b81746a
commit
1702101031
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user