18 references to PanelStatusGlyph
aspire-tray (18)
src\Aspire.Tray\Common\TrayPanel.cs (11)
1229TrayPanelGlyphs.AddStatus(commands, PanelStatusGlyph.Busy, art.Inset(2, 2), palette); 1653internal static PanelStatusGlyph GetStatusGlyph(AppHostMenuItem host, bool live) => host switch 1655{ IsStarting: true } or { IsStopping: true } => PanelStatusGlyph.Busy, 1656{ IsRunning: false } => host.Error is null ? PanelStatusGlyph.Stopped : PanelStatusGlyph.Warning, 1657_ when !live => PanelStatusGlyph.Unknown, 1658{ Error: not null } => PanelStatusGlyph.Warning, 1659{ Health: AppHostHealth.Healthy } => PanelStatusGlyph.Healthy, 1660{ Health: AppHostHealth.Warning } => PanelStatusGlyph.Warning, 1661{ Health: AppHostHealth.Unhealthy } => PanelStatusGlyph.Unhealthy, 1662_ => 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: