18 references to PanelStatusGlyph
aspire-tray (18)
src\Aspire.Tray\Common\TrayPanel.cs (11)
1117TrayPanelGlyphs.AddStatus(commands, PanelStatusGlyph.Busy, art.Inset(2, 2), palette); 1543internal static PanelStatusGlyph GetStatusGlyph(AppHostMenuItem host, bool live) => host switch 1545{ IsStarting: true } or { IsStopping: true } => PanelStatusGlyph.Busy, 1546{ IsRunning: false } => host.Error is null ? PanelStatusGlyph.Stopped : PanelStatusGlyph.Warning, 1547_ when !live => PanelStatusGlyph.Unknown, 1548{ Error: not null } => PanelStatusGlyph.Warning, 1549{ Health: AppHostHealth.Healthy } => PanelStatusGlyph.Healthy, 1550{ Health: AppHostHealth.Warning } => PanelStatusGlyph.Warning, 1551{ Health: AppHostHealth.Unhealthy } => PanelStatusGlyph.Unhealthy, 1552_ => PanelStatusGlyph.Unknown
src\Aspire.Tray\Common\TrayPanelGlyphs.cs (7)
52public static void AddStatus(List<PanelCommand> commands, PanelStatusGlyph glyph, PanelRect bounds, TrayPanelPalette palette) 58case PanelStatusGlyph.Healthy: 62case PanelStatusGlyph.Warning: 67case PanelStatusGlyph.Unhealthy: 71case PanelStatusGlyph.Unknown: 79case PanelStatusGlyph.Stopped: 83case PanelStatusGlyph.Busy: