45 references to PanelIcon
aspire-tray (45)
src\Aspire.Tray\Common\TrayPanel.cs (24)
1099
TrayPanelGlyphs.AddIcon(commands,
PanelIcon
.Alert, new(LeadingCenter - 8, banner.Y + 9, 16, 16), palette.BannerText);
1121
TrayPanelGlyphs.AddIcon(commands,
PanelIcon
.Layers, art, palette.TextTertiary);
1155
TrayPanelGlyphs.AddIcon(commands, expanded ?
PanelIcon
.ChevronDown :
PanelIcon
.ChevronRight,
1205
PanelTargetKind.Dashboard => (
PanelIcon
.ExternalLink, $"Open dashboard for {host.DisplayName}", "Open dashboard", host.CanOpenDashboard),
1206
PanelTargetKind.Stop => (
PanelIcon
.Stop, $"Stop {host.DisplayName}", "Stop", host.CanStop),
1207
PanelTargetKind.Start => (
PanelIcon
.Play, $"Start {host.DisplayName}", "Start", host.CanStart),
1208
_ => (
PanelIcon
.More, expanded ? $"Hide actions for {host.DisplayName}" : $"More actions for {host.DisplayName}",
1257
private List<(PanelTargetKind Kind, int Item,
PanelIcon
Icon, string Label, string Name)> GetRowActions(AppHostMenuItem host, PanelSection section)
1260
var actions = new List<(PanelTargetKind, int,
PanelIcon
, string, string)>();
1263
actions.Add((PanelTargetKind.OpenInMenu, 0,
PanelIcon
.AppWindow, "Open in",
1268
actions.Add((PanelTargetKind.OpenIn, i,
PanelIcon
.AppWindow, application, $"Open {name} in {application}"));
1271
actions.Add((PanelTargetKind.ShowInFolder, 0,
PanelIcon
.Folder, $"Show in {_fileManagerName}", $"Show {name} in {_fileManagerName}"));
1272
actions.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}"));
1278
actions.Add((PanelTargetKind.RemoveRecent, 0,
PanelIcon
.Remove, "Remove from recent", $"Remove {name} from recent AppHosts"));
1306
TrayPanelGlyphs.AddIcon(fallback,
PanelIcon
.AppWindow, new(TextLeft, item.Y + 7, 16, 16), iconColor);
1320
TrayPanelGlyphs.AddIcon(commands, _openInExpanded ?
PanelIcon
.ChevronDown :
PanelIcon
.ChevronRight,
1420
TrayPanelGlyphs.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)
97
public static void AddIcon(List<PanelCommand> commands,
PanelIcon
icon, PanelRect bounds, PanelColor color)
99
var design = icon ==
PanelIcon
.Layers ? ArtDesignSize : IconDesignSize;
103
case
PanelIcon
.ExternalLink:
111
case
PanelIcon
.Stop:
114
case
PanelIcon
.Play:
120
case
PanelIcon
.More:
126
case
PanelIcon
.Gear:
130
case
PanelIcon
.Power:
135
case
PanelIcon
.ChevronDown:
138
case
PanelIcon
.ChevronRight:
141
case
PanelIcon
.ChevronLeft:
144
case
PanelIcon
.Alert:
149
case
PanelIcon
.Layers:
154
case
PanelIcon
.AppWindow:
159
case
PanelIcon
.Folder:
166
case
PanelIcon
.Copy:
171
case
PanelIcon
.Pin:
172
case
PanelIcon
.Unpin:
177
if (icon ==
PanelIcon
.Unpin)
182
case
PanelIcon
.Globe:
189
case
PanelIcon
.Remove: