Color issues
This commit is contained in:
@@ -28,14 +28,14 @@ public class SkiaImageButton : SkiaView
|
||||
#endregion
|
||||
|
||||
#region SKColor Helper
|
||||
/// <summary>
|
||||
/// Converts a MAUI Color to SkiaSharp SKColor.
|
||||
/// Uses the ToSKColor() extension from ColorExtensions for MAUI-compliant theming.
|
||||
/// </summary>
|
||||
private static SKColor ToSKColor(Color? color)
|
||||
{
|
||||
if (color == null) return SKColors.Transparent;
|
||||
return new SKColor(
|
||||
(byte)(color.Red * 255),
|
||||
(byte)(color.Green * 255),
|
||||
(byte)(color.Blue * 255),
|
||||
(byte)(color.Alpha * 255));
|
||||
return color.ToSKColor();
|
||||
}
|
||||
#endregion
|
||||
|
||||
@@ -343,7 +343,7 @@ public class SkiaImageButton : SkiaView
|
||||
{
|
||||
using var focusPaint = new SKPaint
|
||||
{
|
||||
Color = new SKColor(0x00, 0x00, 0x00, 0x40),
|
||||
Color = SkiaTheme.Shadow25SK,
|
||||
Style = SKPaintStyle.Stroke,
|
||||
StrokeWidth = 2,
|
||||
IsAntialias = true
|
||||
|
||||
Reference in New Issue
Block a user