45 references to PanelIcon
aspire-tray (45)
src\Aspire.Tray\Common\TrayPanel.cs (24)
1209
TrayPanelGlyphs.AddIcon(commands,
PanelIcon
.Alert, new(LeadingCenter - 8, iconY, 16, 16), palette.BannerText);
1233
TrayPanelGlyphs.AddIcon(commands,
PanelIcon
.Layers, art, palette.TextTertiary);
1267
TrayPanelGlyphs.AddIcon(commands, expanded ?
PanelIcon
.ChevronDown :
PanelIcon
.ChevronRight,
1319
PanelTargetKind.Dashboard => (
PanelIcon
.ExternalLink, $"Open dashboard for {host.DisplayName}", "Open dashboard", host.CanOpenDashboard),
1320
PanelTargetKind.Stop => (
PanelIcon
.Stop, $"Stop {host.DisplayName}", "Stop", host.CanStop),
1321
PanelTargetKind.Start => (
PanelIcon
.Play, $"Start {host.DisplayName}", "Start", host.CanStart),
1322
_ => (
PanelIcon
.More, expanded ? $"Hide actions for {host.DisplayName}" : $"More actions for {host.DisplayName}",
1370
private List<(PanelTargetKind Kind, int Item,
PanelIcon
Icon, string Label, string Name)> GetRowActions(AppHostMenuItem host, PanelSection section)
1373
var actions = new List<(PanelTargetKind, int,
PanelIcon
, string, string)>();
1376
actions.Add((PanelTargetKind.OpenInMenu, 0,
PanelIcon
.AppWindow, "Open in",
1381
actions.Add((PanelTargetKind.OpenIn, i,
PanelIcon
.AppWindow, application, $"Open {name} in {application}"));
1384
actions.Add((PanelTargetKind.ShowInFolder, 0,
PanelIcon
.Folder, $"Show in {_fileManagerName}", $"Show {name} in {_fileManagerName}"));
1385
actions.Add((PanelTargetKind.CopyPath, 0,
PanelIcon
.Copy, "Copy path", $"Copy the folder path of {name}"));
1387
? (PanelTargetKind.TogglePin, 0,
PanelIcon
.Unpin, "Unpin", $"Unpin {name}")
1388
: (PanelTargetKind.TogglePin, 0,
PanelIcon
.Pin, "Pin", $"Pin {name}"));
1391
actions.Add((PanelTargetKind.RemoveRecent, 0,
PanelIcon
.Remove, "Remove from recent", $"Remove {name} from recent AppHosts"));
1419
TrayPanelGlyphs.AddIcon(fallback,
PanelIcon
.AppWindow, new(TextLeft, item.Y + 7, 16, 16), iconColor);
1433
TrayPanelGlyphs.AddIcon(commands, _openInExpanded ?
PanelIcon
.ChevronDown :
PanelIcon
.ChevronRight,
1533
TrayPanelGlyphs.AddIcon(commands,
PanelIcon
.ChevronLeft, back.Inset(6, 6), _hover == backKey ? palette.TextPrimary : palette.TextSecondary);
1592
(PanelTargetKind.Settings,
PanelIcon
.Gear, _settings is null ? "Settings" : "Close settings",
1594
(PanelTargetKind.Documentation,
PanelIcon
.Globe, "Open Aspire documentation", "Documentation", null, right - 2 * ButtonSize - ButtonGap),
1595
(PanelTargetKind.Quit,
PanelIcon
.Power, _quitVerb, _quitVerb, _quitVerb, 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: