A RichTextPanel style component that matches the text pattern "Press R" (case-insensitive) and provides visual styling. It sets text color, border color/width/radius and a subtle background gradient for matched text.
[RichTextPanel( @"\b[Pp]ress [Rr]\b" )]
public class RichTextPressR : RichTextBase
{
public override Color Color => new Color( 1f, 0.7f, 0.85f );
public override Color? BorderColor => new Color( 1f, 0.7f, 0.85f ).Saturate( 1f ).WithAlpha(0.6f);
public override float? BorderWidth => 1f;
public override float? BorderRadius => 4f;
public override Color? BackgroundGradientStart => new Color( 0.6f, 0.8f, 1f, 0.1f );
public override Color? BackgroundGradientEnd => new Color( 1f, 0.8f, 1f, 0.1f );
public override float? BackgroundGradientAngle => -55f;
}