ui/richtext/arrows/RichTextArrowResultNegative.cs

A UI rich text rule class that defines a pattern for negative arrowed numeric results and sets the display color. It inherits from RichTextArrowResult and applies a regex-based RichTextPanel attribute to match formatted numeric ranges or arrow expressions, then sets a red color for matched text.

[RichTextPanel( @"(?:\[-\][ \t]*(\+?-?\d+(?:\.\d+)?[%ms]?)[ \t]*(?:→|->)[ \t]*(\+?-?\d+(?:\.\d+)?[%ms]?)[ \t]*\[/-\]|(?:\[-\])?[ \t]*(-\d+(?:\.\d+)?[%ms]?)[ \t]*(?:→|->)[ \t]*(-\d+(?:\.\d+)?[%ms]?)[ \t]*(?:\[/-\])?)(?:[%ms](?![a-z]))?", UseCaptureGroup = false )]
public class RichTextArrowResultNegative : RichTextArrowResult
{
	public override Color Color => Color.Parse( "#e84d4d" ) ?? Color.Red;
}