14 references to Body
Aspire.Tray.Tests (14)
src\Aspire.Tray\Common\TrayPanel.cs (12)
1184var statusMiddle = HeaderBaseline - PanelFonts.CapHeight(PanelFontRole.Body) / 2; 1188commands.Add(new TextCommand(statusBounds, status, PanelFontRole.Body, palette.TextSecondary, ExplicitBaseline: HeaderBaseline)); 1214? new TextCommand(text, notice, PanelFontRole.Body, palette.BannerText) 1215: new TextCommand(text, notice, PanelFontRole.Body, palette.BannerText, MaxLines: 2)); 1238commands.Add(new TextCommand(hintBounds, hint, PanelFontRole.Body, palette.TextSecondary, 1277commands.Add(new TextCommand(clear, "Clear", PanelFontRole.Body, palette.Accent, PanelTextAlignment.Center)); 1307commands.Add(new TextCommand(new(TextLeft, top + 27, textRight - TextLeft, 16), detail, PanelFontRole.Body, 1422PanelFontRole.Body, palette.TextPrimary)); 1436commands.Add(new TextCommand(new(TextLeft, item.Y, labelRight - TextLeft, item.Height), label, PanelFontRole.Body, palette.TextPrimary)); 1490commands.Add(new TextCommand(detailBounds, detail, PanelFontRole.Body, palette.TextSecondary, 1561commands.Add(new TextCommand(new(20, top + 28, textWidth, 30), description, PanelFontRole.Body, 1580commands.Add(new TextCommand(bounds, line, PanelFontRole.Body, palette.TextSecondary, Truncation: PanelTruncation.Middle));
src\Aspire.Tray\Common\TrayPanelScene.cs (1)
34public static bool IsSemibold(PanelFontRole role) => role is not PanelFontRole.Body;
TrayPanelTests.cs (1)
1060Assert.Equal(status.Baseline - PanelFonts.CapHeight(PanelFontRole.Body) / 2, dot.Path.GetControlBounds().CenterY, 3);