64 references to PanelIcon
Aspire.Tray.Tests (64)
src\Aspire.Tray\Common\TrayPanel.cs (24)
951TrayPanelGlyphs.AddIcon(commands, PanelIcon.Alert, new(banner.X + 10, banner.Y + 9, 16, 16), palette.BannerText); 973TrayPanelGlyphs.AddIcon(commands, PanelIcon.Layers, art, palette.TextTertiary); 1007TrayPanelGlyphs.AddIcon(commands, expanded ? PanelIcon.ChevronDown : PanelIcon.ChevronRight, 1057PanelTargetKind.Dashboard => (PanelIcon.ExternalLink, $"Open dashboard for {host.DisplayName}", "Open dashboard", host.CanOpenDashboard), 1058PanelTargetKind.Stop => (PanelIcon.Stop, $"Stop {host.DisplayName}", "Stop", host.CanStop), 1059PanelTargetKind.Start => (PanelIcon.Play, $"Start {host.DisplayName}", "Start", host.CanStart), 1060_ => (PanelIcon.More, expanded ? $"Hide actions for {host.DisplayName}" : $"More actions for {host.DisplayName}", 1109private List<(PanelTargetKind Kind, int Item, PanelIcon Icon, string Label, string Name)> GetRowActions(AppHostMenuItem host, PanelSection section) 1112var actions = new List<(PanelTargetKind, int, PanelIcon, string, string)>(); 1115actions.Add((PanelTargetKind.OpenInMenu, 0, PanelIcon.AppWindow, "Open in", 1120actions.Add((PanelTargetKind.OpenIn, i, PanelIcon.AppWindow, application, $"Open {name} in {application}")); 1123actions.Add((PanelTargetKind.ShowInFolder, 0, PanelIcon.Folder, $"Show in {_fileManagerName}", $"Show {name} in {_fileManagerName}")); 1124actions.Add((PanelTargetKind.CopyPath, 0, PanelIcon.Copy, "Copy path", $"Copy the folder path of {name}")); 1126? (PanelTargetKind.TogglePin, 0, PanelIcon.Unpin, "Unpin", $"Unpin {name}") 1127: (PanelTargetKind.TogglePin, 0, PanelIcon.Pin, "Pin", $"Pin {name}")); 1130actions.Add((PanelTargetKind.RemoveRecent, 0, PanelIcon.Remove, "Remove from recent", $"Remove {name} from recent AppHosts")); 1158TrayPanelGlyphs.AddIcon(fallback, PanelIcon.AppWindow, new(TextLeft, item.Y + 7, 16, 16), iconColor); 1172TrayPanelGlyphs.AddIcon(commands, _openInExpanded ? PanelIcon.ChevronDown : PanelIcon.ChevronRight, 1271TrayPanelGlyphs.AddIcon(commands, PanelIcon.ChevronLeft, back.Inset(6, 6), _hover == backKey ? palette.TextPrimary : palette.TextSecondary); 1333(PanelTargetKind.Settings, PanelIcon.Gear, _settings is null ? "Settings" : "Close settings", 1335(PanelTargetKind.Documentation, PanelIcon.Globe, "Open Aspire documentation", "Documentation", null, right - 2 * ButtonSize - ButtonGap), 1336(PanelTargetKind.Quit, PanelIcon.Power, _quitVerb, quitDescription, quitDescription, right - ButtonSize)
src\Aspire.Tray\Common\TrayPanelGlyphs.cs (21)
97public static void AddIcon(List<PanelCommand> commands, PanelIcon icon, PanelRect bounds, PanelColor color) 99var design = icon == PanelIcon.Layers ? ArtDesignSize : IconDesignSize; 103case PanelIcon.ExternalLink: 111case PanelIcon.Stop: 114case PanelIcon.Play: 120case PanelIcon.More: 126case PanelIcon.Gear: 130case PanelIcon.Power: 135case PanelIcon.ChevronDown: 138case PanelIcon.ChevronRight: 141case PanelIcon.ChevronLeft: 144case PanelIcon.Alert: 149case PanelIcon.Layers: 154case PanelIcon.AppWindow: 159case PanelIcon.Folder: 166case PanelIcon.Copy: 171case PanelIcon.Pin: 172case PanelIcon.Unpin: 177if (icon == PanelIcon.Unpin) 182case PanelIcon.Globe: 189case PanelIcon.Remove:
TrayPanelTests.cs (19)
976[InlineData((int)PanelIcon.ExternalLink)] 977[InlineData((int)PanelIcon.Stop)] 978[InlineData((int)PanelIcon.Play)] 979[InlineData((int)PanelIcon.More)] 980[InlineData((int)PanelIcon.Gear)] 981[InlineData((int)PanelIcon.Power)] 982[InlineData((int)PanelIcon.Globe)] 983[InlineData((int)PanelIcon.ChevronDown)] 984[InlineData((int)PanelIcon.ChevronRight)] 985[InlineData((int)PanelIcon.Alert)] 986[InlineData((int)PanelIcon.Layers)] 987[InlineData((int)PanelIcon.AppWindow)] 988[InlineData((int)PanelIcon.Folder)] 989[InlineData((int)PanelIcon.Copy)] 990[InlineData((int)PanelIcon.Pin)] 991[InlineData((int)PanelIcon.Unpin)] 992[InlineData((int)PanelIcon.Remove)] 995var icon = (PanelIcon)value;