23 instantiations of TextCommand
aspire-tray (23)
src\Aspire.Tray\Common\TrayPanel.cs (23)
989sink.Add(new TextCommand(headerBounds, general ? "GENERAL" : "ABOUT", PanelFontRole.Section, palette.TextTertiary)); 1179commands.Add(new TextCommand(title, "Aspire", PanelFontRole.Title, palette.TextPrimary)); 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)); 1237commands.Add(new TextCommand(titleBounds, title, PanelFontRole.Name, palette.TextPrimary, PanelTextAlignment.Center)); 1238commands.Add(new TextCommand(hintBounds, hint, PanelFontRole.Body, palette.TextSecondary, 1256commands.Add(new TextCommand(labelBounds, label, PanelFontRole.Section, palette.TextTertiary)); 1266commands.Add(new TextCommand(labelBounds, label, PanelFontRole.Section, palette.TextTertiary)); 1277commands.Add(new TextCommand(clear, "Clear", PanelFontRole.Body, palette.Accent, PanelTextAlignment.Center)); 1306commands.Add(new TextCommand(new(TextLeft, top + 8, textRight - TextLeft, 18), host.DisplayName, PanelFontRole.Name, palette.TextPrimary)); 1307commands.Add(new TextCommand(new(TextLeft, top + 27, textRight - TextLeft, 16), detail, PanelFontRole.Body, 1421commands.Add(new TextCommand(new(NestedTextLeft, item.Y, item.Right - 8 - NestedTextLeft, item.Height), label, 1436commands.Add(new TextCommand(new(TextLeft, item.Y, labelRight - TextLeft, item.Height), label, PanelFontRole.Body, palette.TextPrimary)); 1489commands.Add(new TextCommand(questionBounds, question, PanelFontRole.Name, palette.TextPrimary)); 1490commands.Add(new TextCommand(detailBounds, detail, PanelFontRole.Body, palette.TextSecondary, 1509commands.Add(new TextCommand(cancelBounds, "Cancel", PanelFontRole.Button, palette.TextPrimary, PanelTextAlignment.Center)); 1523commands.Add(new TextCommand(acceptBounds, accept, PanelFontRole.Button, palette.OnColor, PanelTextAlignment.Center)); 1536commands.Add(new TextCommand(title, TraySettingsText.PanelTitle, PanelFontRole.Title, palette.TextPrimary)); 1559commands.Add(new TextCommand(new(20, top + 8, textWidth, 20), title, PanelFontRole.Name, 1561commands.Add(new TextCommand(new(20, top + 28, textWidth, 30), description, PanelFontRole.Body, 1570commands.Add(new TextCommand(name, "Aspire Tray", PanelFontRole.Name, palette.TextPrimary)); 1580commands.Add(new TextCommand(bounds, line, PanelFontRole.Body, palette.TextSecondary, Truncation: PanelTruncation.Middle));
4 references to TextCommand
aspire-tray (4)
src\Aspire.Tray\Common\TrayPanelSceneJson.cs (2)
49foreach (var text in scene.Commands.OfType<TextCommand>())
TrayApplication.Panel.cs (2)
509case TextCommand text: 671private void DrawPanelText(nint dc, TextCommand text, TrayPanelPalette palette)