Update icons for event attributes

This commit is contained in:
2025-12-25 20:03:50 -05:00
parent 1f5aba7f04
commit aedf168e8a
2 changed files with 34 additions and 13 deletions
+19 -7
View File
@@ -17,9 +17,9 @@ namespace WebApp.Models
return loe switch
{
1 => "1",
2 => "2",
3 => "3",
1 => "",
2 => "",
3 => "",
_ => Icons.Material.Filled.QuestionMark
};
}
@@ -30,7 +30,6 @@ namespace WebApp.Models
public static string IndividualEvent = "ⓘ";
public static string PresubmissionEvent = "ⓟ";
public static string PresentationEvent = "";
public static string QuestionMark = "❔";
// Tooltip mapping for icon unicode characters
public static Dictionary<string, string> IconTooltips => new()
@@ -40,9 +39,22 @@ namespace WebApp.Models
{ IndividualEvent, "Individual Event" },
{ PresubmissionEvent, "Presubmission" },
{ PresentationEvent, "Presentation/Interview" },
{ "", "Level of Effort: 1" },
{ "", "Level of Effort: 2" },
{ "", "Level of Effort: 3" }
{ "", "Level of Effort: 1" },
{ "", "Level of Effort: 2" },
{ "", "Level of Effort: 3" }
};
// Color mapping for icon unicode characters
public static Dictionary<string, string> IconColors => new()
{
{ OnSiteActivity, "#ff9800" }, // Orange
{ RegionalEvent, "#2196f3" }, // Blue
{ IndividualEvent, "#9c27b0" }, // Purple
{ PresubmissionEvent, "#4caf50" }, // Green
{ PresentationEvent, "#f44336" }, // Red
{ "○", "#757575" }, // Gray
{ "◐", "#616161" }, // Darker Gray
{ "●", "#424242" } // Even Darker Gray
};
public static string EventEffort(EventDefinition eventDefinition)