Missing backgroundcolor

This commit is contained in:
2026-01-17 03:10:29 +00:00
parent 5443c7c22a
commit aad915ad86
63 changed files with 177 additions and 143 deletions

View File

@@ -102,12 +102,8 @@ public partial class ButtonHandler : ViewHandler<IButton, SkiaButton>
if (button.Background is SolidPaint solidPaint && solidPaint.Color is not null)
{
// Set BackgroundColor (used for rendering)
handler.PlatformView.BackgroundColor = new SKColor(
(byte)(solidPaint.Color.Red * 255),
(byte)(solidPaint.Color.Green * 255),
(byte)(solidPaint.Color.Blue * 255),
(byte)(solidPaint.Color.Alpha * 255));
// Set BackgroundColor (MAUI Color type)
handler.PlatformView.BackgroundColor = solidPaint.Color;
}
}