@using System.Drawing
@if (this.Group.Bookmarks == null || !this.Group.Bookmarks.Any())
{
-
No Bookmarks
}
else
{
foreach (BookmarkDto bookmark in this.Group.Bookmarks)
{
}
}
@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
}
}