mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-09-13 12:59:19 +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);
|
drawer.SetTransparency(Transparency);
|
||||||
try
|
try
|
||||||
drawer.Brush := BackgroundBrush;
|
drawer.Brush := BackgroundBrush;
|
||||||
|
if BackgroundBrush.Color = clDefault then
|
||||||
|
drawer.SetBrushColor(ColorToRGB(FOwner.GetDefaultColor(dctBrush)));
|
||||||
if Frame.Visible then begin
|
if Frame.Visible then begin
|
||||||
drawer.Pen := Frame;
|
drawer.Pen := Frame;
|
||||||
if Frame.Color = clDefault then
|
if Frame.Color = clDefault then
|
||||||
drawer.SetPenColor(FOwner.GetDefaultColor(dctFont));
|
drawer.SetPenColor(ColorToRGB(FOwner.GetDefaultColor(dctFont)));
|
||||||
end else
|
end else
|
||||||
drawer.SetPenParams(psClear, clTAColor);
|
drawer.SetPenParams(psClear, clTAColor);
|
||||||
r := AData.FBounds;
|
r := AData.FBounds;
|
||||||
|
Loading…
Reference in New Issue
Block a user