BarElement.FillColorFn property
Modern fill colour, evaluated PER REFRESH so it can track which item occupies a reused/pooled row slot — the static Fill ctor arg is captured once and cannot (e.g. the Nearby Monsters list colouring the HP fill by monster rank in the same recycled row). FillColorFn non-null wins; returning null falls back to the static Fill. Default null → unchanged; a Modern bar that leaves it null renders with the static Fill exactly as before, with no override machinery attached. Added as an init property (NOT a positional ctor param) so the record stays source + binary compatible with already-compiled plugins (see WindowBuilder-Patterns.md “Binary compatibility rules”). Honoured on the Modern path and the Default (window) bar path.
public Func<ColorRgba?>? FillColorFn { get; set; }See Also
Section titled “See Also”- struct ColorRgba
- record BarElement
- namespace Stellar.Abstractions.Services