Fix labels, lists and other tweaks

This commit is contained in:
2026-01-24 02:21:56 +00:00
parent 5415c71e9e
commit 7830356f24
10 changed files with 100 additions and 27 deletions

View File

@@ -143,10 +143,16 @@ public class SkiaSearchBar : SkiaView
float cornerRadius = (float)CornerRadius;
float iconSize = (float)IconSize;
// Draw background
// Draw background - use theme-aware color if not explicitly set
var bgColor = SearchBarBackgroundColor.ToSKColor();
// If using default light color, check for dark mode
if (SearchBarBackgroundColor.Red > 0.9f && SearchBarBackgroundColor.Green > 0.9f && SearchBarBackgroundColor.Blue > 0.9f)
{
bgColor = SkiaTheme.InputBackgroundSK;
}
using var bgPaint = new SKPaint
{
Color = SearchBarBackgroundColor.ToSKColor(),
Color = bgColor,
IsAntialias = true,
Style = SKPaintStyle.Fill
};