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