Skip to content

Commit

Permalink
Enable CornerRadius on gauges by default
Browse files Browse the repository at this point in the history
  • Loading branch information
beto-rodriguez committed Oct 26, 2024
1 parent d869787 commit c771dd4
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions samples/ViewModelsSamples/Pies/AngularGauge/ViewModel.cs
Original file line number Diff line number Diff line change
Expand Up @@ -60,5 +60,6 @@ private static void SetStyle(
{
series.OuterRadiusOffset = sectionsOuter;
series.MaxRadialColumnWidth = sectionsWidth;
series.CornerRadius = 0;
}
}
2 changes: 2 additions & 0 deletions src/skiasharp/LiveChartsCore.SkiaSharp/ThemesExtensions.cs
Original file line number Diff line number Diff line change
Expand Up @@ -200,6 +200,7 @@ public static LiveChartsSettings AddLightTheme(
gaugeSeries.Fill = new SolidColorPaint(color);
gaugeSeries.DataLabelsPosition = PolarLabelsPosition.ChartCenter;
gaugeSeries.DataLabelsPaint = new SolidColorPaint(new SKColor(70, 70, 70));
gaugeSeries.CornerRadius = 8;
})
.HasRuleForGaugeFillSeries(gaugeFill =>
{
Expand Down Expand Up @@ -385,6 +386,7 @@ public static LiveChartsSettings AddDarkTheme(
gaugeSeries.Fill = new SolidColorPaint(color);
gaugeSeries.DataLabelsPosition = PolarLabelsPosition.ChartCenter;
gaugeSeries.DataLabelsPaint = new SolidColorPaint(new SKColor(200, 200, 200));
gaugeSeries.CornerRadius = 8;
})
.HasRuleForGaugeFillSeries(gaugeFill =>
{
Expand Down

0 comments on commit c771dd4

Please sign in to comment.