public static (string, string) FilterToGlyph(ChatFilterIcon icon) { return(icon switch { ChatFilterIcon.Cat => ("\uE933", "\uE931"), ChatFilterIcon.Crown => ("\uE935", "\uE934"), ChatFilterIcon.Favorite => ("\uE937", "\uE936"), ChatFilterIcon.Flower => ("\uE939", "\uE938"), ChatFilterIcon.Game => ("\uE93B", "\uE93A"), ChatFilterIcon.Home => ("\uE940", "\uE93C"), ChatFilterIcon.Love => ("\uE942", "\uE941"), ChatFilterIcon.Mask => ("\uE945", "\uE944"), ChatFilterIcon.Party => ("\uE948", "\uE947"), ChatFilterIcon.Sport => ("\uE94A", "\uE949"), ChatFilterIcon.Study => ("\uE94C", "\uE94B"), ChatFilterIcon.Trade => ("\uE94E", "\uE94D"), ChatFilterIcon.Travel => ("\uE950", "\uE94F"), ChatFilterIcon.Work => ("\uE952", "\uE951"), ChatFilterIcon.All => ("\uE954", "\uE953"), ChatFilterIcon.Unread => ("\uE91C", "\uE91C"), ChatFilterIcon.Unmuted => ("\uE958", "\uE957"), ChatFilterIcon.Bots => ("\uE95A", "\uE959"), ChatFilterIcon.Channels => ("\uE95C", "\uE95B"), ChatFilterIcon.Groups => ("\uE95E", "\uE95D"), ChatFilterIcon.Private => ("\uE960", "\uE95F"), ChatFilterIcon.Custom => ("\uE962", "\uE961"), _ => ("\uE962", "\uE961") });
public static string FromFilter(ChatFilterIcon icon) { switch (icon) { case ChatFilterIcon.All: return("\uE92D"); case ChatFilterIcon.Unread: return("\uE91C"); case ChatFilterIcon.Unmuted: return("\uE93B"); case ChatFilterIcon.Bots: return("\uE92E"); case ChatFilterIcon.Channels: return("\uE930"); case ChatFilterIcon.Groups: return("\uE935"); case ChatFilterIcon.Private: return("\uE931"); case ChatFilterIcon.Custom: default: return("\uE932"); case ChatFilterIcon.Setup: return("\uE938"); case ChatFilterIcon.Cat: return("\uE92F"); case ChatFilterIcon.Crown: return("\uE932"); // <-- todo case ChatFilterIcon.Favorite: return("\uE933"); case ChatFilterIcon.Flower: return("\uE932"); // <-- todo case ChatFilterIcon.Game: return("\uE934"); case ChatFilterIcon.Home: return("\uE936"); case ChatFilterIcon.Love: return("\uE937"); case ChatFilterIcon.Mask: return("\uE932"); // <-- todo case ChatFilterIcon.Party: return("\uE932"); // <-- todo case ChatFilterIcon.Sport: return("\uE923"); case ChatFilterIcon.Study: return("\uE939"); case ChatFilterIcon.Trade: return("\uE932"); // <-- todo case ChatFilterIcon.Travel: return("\uE93A"); case ChatFilterIcon.Work: return("\uE93C"); } }
private string ConvertEmoji(ChatFilterIcon icon) { return(Icons.FilterToGlyph(icon).Item1); }
private Uri ConvertEmoji(ChatFilterIcon icon) { return(new Uri($"ms-appx:///Assets/Filters/{icon}.png")); }