31 references to PanelFontRole
Aspire.Tray.Tests (31)
Helpers\TrayPanelSvgRenderer.cs (1)
136if (text.Font == PanelFontRole.Section)
src\Aspire.Tray\Common\TrayPanel.cs (23)
860sink.Add(new TextCommand(headerBounds, general ? "GENERAL" : "ABOUT", PanelFontRole.Section, palette.TextTertiary)); 932commands.Add(new TextCommand(title, "Aspire", PanelFontRole.Title, palette.TextPrimary)); 938commands.Add(new TextCommand(statusBounds, status, PanelFontRole.Body, palette.TextSecondary)); 954? new TextCommand(text, notice, PanelFontRole.Body, palette.BannerText) 955: new TextCommand(text, notice, PanelFontRole.Body, palette.BannerText, MaxLines: 2)); 977commands.Add(new TextCommand(titleBounds, title, PanelFontRole.Name, palette.TextPrimary, PanelTextAlignment.Center)); 978commands.Add(new TextCommand(hintBounds, hint, PanelFontRole.Body, palette.TextSecondary, 996commands.Add(new TextCommand(labelBounds, label, PanelFontRole.Section, palette.TextTertiary)); 1006commands.Add(new TextCommand(labelBounds, label, PanelFontRole.Section, palette.TextTertiary)); 1017commands.Add(new TextCommand(clear, "Clear", PanelFontRole.Body, palette.Accent, PanelTextAlignment.Center)); 1044commands.Add(new TextCommand(new(TextLeft, top + 8, textRight - TextLeft, 18), host.DisplayName, PanelFontRole.Name, palette.TextPrimary)); 1045commands.Add(new TextCommand(new(TextLeft, top + 27, textRight - TextLeft, 16), detail, PanelFontRole.Body, 1161PanelFontRole.Body, palette.TextPrimary)); 1175commands.Add(new TextCommand(new(TextLeft, item.Y, labelRight - TextLeft, item.Height), label, PanelFontRole.Body, palette.TextPrimary)); 1228commands.Add(new TextCommand(questionBounds, question, PanelFontRole.Name, palette.TextPrimary)); 1229commands.Add(new TextCommand(detailBounds, detail, PanelFontRole.Body, palette.TextSecondary, 1248commands.Add(new TextCommand(cancelBounds, "Cancel", PanelFontRole.Button, palette.TextPrimary, PanelTextAlignment.Center)); 1262commands.Add(new TextCommand(acceptBounds, accept, PanelFontRole.Button, palette.OnColor, PanelTextAlignment.Center)); 1274commands.Add(new TextCommand(title, TraySettingsText.PanelTitle, PanelFontRole.Title, palette.TextPrimary)); 1297commands.Add(new TextCommand(new(20, top + 8, textWidth, 20), title, PanelFontRole.Name, 1299commands.Add(new TextCommand(new(20, top + 28, textWidth, 30), description, PanelFontRole.Body, 1308commands.Add(new TextCommand(name, "Aspire Tray", PanelFontRole.Name, palette.TextPrimary)); 1318commands.Add(new TextCommand(bounds, line, PanelFontRole.Body, palette.TextSecondary, Truncation: PanelTruncation.Middle));
src\Aspire.Tray\Common\TrayPanelScene.cs (7)
26public static double Size(PanelFontRole role) => role switch 28PanelFontRole.Title => 15, 29PanelFontRole.Name => 13, 30PanelFontRole.Section => 11, 34public static bool IsSemibold(PanelFontRole role) => role is not PanelFontRole.Body; 66PanelFontRole Font,