18 references to PanelStatusGlyph
aspire-tray (18)
src\Aspire.Tray\Common\TrayPanel.cs (11)
1117
TrayPanelGlyphs.AddStatus(commands,
PanelStatusGlyph
.Busy, art.Inset(2, 2), palette);
1543
internal 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)
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: