45 references to PanelIcon
aspire-tray (45)
src\Aspire.Tray\Common\TrayPanel.cs (24)
1099TrayPanelGlyphs.AddIcon(commands, PanelIcon.Alert, new(LeadingCenter - 8, banner.Y + 9, 16, 16), palette.BannerText); 1121TrayPanelGlyphs.AddIcon(commands, PanelIcon.Layers, art, palette.TextTertiary); 1155TrayPanelGlyphs.AddIcon(commands, expanded ? PanelIcon.ChevronDown : PanelIcon.ChevronRight, 1205PanelTargetKind.Dashboard => (PanelIcon.ExternalLink, $"Open dashboard for {host.DisplayName}", "Open dashboard", host.CanOpenDashboard), 1206PanelTargetKind.Stop => (PanelIcon.Stop, $"Stop {host.DisplayName}", "Stop", host.CanStop), 1207PanelTargetKind.Start => (PanelIcon.Play, $"Start {host.DisplayName}", "Start", host.CanStart), 1208_ => (PanelIcon.More, expanded ? $"Hide actions for {host.DisplayName}" : $"More actions for {host.DisplayName}", 1257private List<(PanelTargetKind Kind, int Item, PanelIcon Icon, string Label, string Name)> GetRowActions(AppHostMenuItem host, PanelSection section) 1260var actions = new List<(PanelTargetKind, int, PanelIcon, string, string)>(); 1263actions.Add((PanelTargetKind.OpenInMenu, 0, PanelIcon.AppWindow, "Open in", 1268actions.Add((PanelTargetKind.OpenIn, i, PanelIcon.AppWindow, application, $"Open {name} in {application}")); 1271actions.Add((PanelTargetKind.ShowInFolder, 0, PanelIcon.Folder, $"Show in {_fileManagerName}", $"Show {name} in {_fileManagerName}")); 1272actions.Add((PanelTargetKind.CopyPath, 0, PanelIcon.Copy, "Copy path", $"Copy the folder path of {name}")); 1274? (PanelTargetKind.TogglePin, 0, PanelIcon.Unpin, "Unpin", $"Unpin {name}") 1275: (PanelTargetKind.TogglePin, 0, PanelIcon.Pin, "Pin", $"Pin {name}")); 1278actions.Add((PanelTargetKind.RemoveRecent, 0, PanelIcon.Remove, "Remove from recent", $"Remove {name} from recent AppHosts")); 1306TrayPanelGlyphs.AddIcon(fallback, PanelIcon.AppWindow, new(TextLeft, item.Y + 7, 16, 16), iconColor); 1320TrayPanelGlyphs.AddIcon(commands, _openInExpanded ? PanelIcon.ChevronDown : PanelIcon.ChevronRight, 1420TrayPanelGlyphs.AddIcon(commands, PanelIcon.ChevronLeft, back.Inset(6, 6), _hover == backKey ? palette.TextPrimary : palette.TextSecondary); 1482(PanelTargetKind.Settings, PanelIcon.Gear, _settings is null ? "Settings" : "Close settings", 1484(PanelTargetKind.Documentation, PanelIcon.Globe, "Open Aspire documentation", "Documentation", null, right - 2 * ButtonSize - ButtonGap), 1485(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: