@using System.Drawing

@this.Group.Title

@code { [Parameter] public BookmarkGroupDto Group { get; set; } = null!; protected string ForegroundTitleColorClass { get { const int threshold = 105; Color bgColor = ColorTranslator.FromHtml(this.Group.Color); double val = Math.Floor((bgColor.R * .299) + (bgColor.G * 0.587) + (bgColor.B * 0.114)); if ((255 - val) < threshold) return "text-dark"; return "text-light"; } } protected void OnCreateBookmarkClicked() { // Placeholder } }