18 references to PanelStatusGlyph
aspire-tray (18)
src\Aspire.Tray\Common\TrayPanel.cs (11)
1229
TrayPanelGlyphs.AddStatus(commands,
PanelStatusGlyph
.Busy, art.Inset(2, 2), palette);
1653
internal 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)
52
public static void AddStatus(List<PanelCommand> commands,
PanelStatusGlyph
glyph, PanelRect bounds, TrayPanelPalette palette)
58
case
PanelStatusGlyph
.Healthy:
62
case
PanelStatusGlyph
.Warning:
67
case
PanelStatusGlyph
.Unhealthy:
71
case
PanelStatusGlyph
.Unknown:
79
case
PanelStatusGlyph
.Stopped:
83
case
PanelStatusGlyph
.Busy: