TAChart: Fix legend background color for dark mode.

This commit is contained in:
wp_xyz 2021-08-04 17:31:37 +02:00
parent 052c78909f
commit b080a05bbd

View File

@ -141,7 +141,8 @@ type
TChartLegendBrush = class(TBrush)
published
property Color default clWhite;
constructor Create; override;
property Color default clDefault;
end;
TLegendAlignment = (
@ -371,6 +372,15 @@ begin
inherited SetItem(AIndex, AValue);
end;
{ TChartLegendBrush }
constructor TChartLegendBrush.Create;
begin
inherited;
Color := clDefault;
end;
{ TLegendItem }
constructor TLegendItem.Create(const AText: String; AColor: TColor);