Skip to content

Commit 8374bc8

Browse files
Merge branch 'internal_public' of https://github.com/syncfusion/maui-toolkit into internal_public
2 parents e75189e + 3f4ac45 commit 8374bc8

File tree

1 file changed

+8
-3
lines changed

1 file changed

+8
-3
lines changed

maui/src/PullToRefresh/SfProgressCircleView.cs

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -270,15 +270,20 @@ void DrawBackgroundCircle(ICanvas canvas)
270270
return;
271271
}
272272

273-
const string shadowColor = "#59000000";
273+
Color shadowColor = Color.FromArgb("#59000000");
274274
Paint solidPaint = PullToRefresh.ProgressBackground;
275275
canvas.SetFillPaint(solidPaint, _fillRect);
276276
#if ANDROID
277277
const int androidShadowSize = 4;
278-
canvas.SetShadow(new SizeF(0, 1), androidShadowSize, Color.FromArgb(shadowColor));
278+
if (PullToRefresh.ProgressBackground is SolidColorBrush brush && brush.Color.Alpha == 0)
279+
{
280+
shadowColor = Color.FromArgb("#00000000");
281+
}
282+
283+
canvas.SetShadow(new SizeF(0, 1), androidShadowSize, shadowColor);
279284
#else
280285
const int defaultShadowSize = 3;
281-
canvas.SetShadow(new SizeF(0, 1), defaultShadowSize, Color.FromArgb(shadowColor));
286+
canvas.SetShadow(new SizeF(0, 1), defaultShadowSize, shadowColor);
282287
#endif
283288
canvas.FillEllipse((float)_fillRect.X, (float)_fillRect.Y, (float)_fillRect.Width, (float)_fillRect.Height);
284289
}

0 commit comments

Comments
 (0)