7 references to PanelFonts
aspire-tray (7)
src\Aspire.Tray\Common\TrayPanel.cs (2)
1069
internal static double HeaderBaseline => HeaderHeight / 2 +
PanelFonts
.CapHeight(PanelFontRole.Title) / 2;
1081
var statusMiddle = HeaderBaseline -
PanelFonts
.CapHeight(PanelFontRole.Body) / 2;
src\Aspire.Tray\Common\TrayPanelScene.cs (1)
85
public double Baseline => ExplicitBaseline ?? Bounds.CenterY +
PanelFonts
.CapHeight(Font) / 2;
src\Aspire.Tray\Common\TrayPanelSceneJson.cs (2)
54
json.WriteNumber("size",
PanelFonts
.Size(text.Font));
55
json.WriteBoolean("semibold",
PanelFonts
.IsSemibold(text.Font));
TrayApplication.Panel.cs (2)
793
var height = -(int)Math.Round(
PanelFonts
.Size(role) * PanelScale);
794
var weight =
PanelFonts
.IsSemibold(role) ? 600 : 400;