Color issues

This commit is contained in:
2026-01-17 03:36:37 +00:00
parent aad915ad86
commit a367365ce5
46 changed files with 970 additions and 443 deletions

View File

@@ -608,12 +608,8 @@ public class SkiaLabel : SkiaView
private SKColor ToSKColor(Color? color)
{
if (color == null) return SKColors.Black;
return new SKColor(
(byte)(color.Red * 255),
(byte)(color.Green * 255),
(byte)(color.Blue * 255),
(byte)(color.Alpha * 255));
if (color == null) return SkiaTheme.TextPrimarySK;
return color.ToSKColor();
}
private string GetDisplayText()
@@ -791,7 +787,7 @@ public class SkiaLabel : SkiaView
using var selectionPaint = new SKPaint
{
Color = new SKColor(0x21, 0x96, 0xF3, 0x60), // Semi-transparent blue
Color = SkiaTheme.PrimaryLightSK,
Style = SKPaintStyle.Fill
};