12 references to PanelTextAlignment
Aspire.Tray.Tests (12)
Helpers\TrayPanelSvgRenderer.cs (2)
176PanelTextAlignment.Center => ("middle", text.Bounds.CenterX), 177PanelTextAlignment.Trailing => ("end", text.Bounds.Right),
src\Aspire.Tray\Common\TrayPanel.cs (5)
1125commands.Add(new TextCommand(titleBounds, title, PanelFontRole.Name, palette.TextPrimary, PanelTextAlignment.Center)); 1127PanelTextAlignment.Center, MaxLines: 2)); 1165commands.Add(new TextCommand(clear, "Clear", PanelFontRole.Body, palette.Accent, PanelTextAlignment.Center)); 1396commands.Add(new TextCommand(cancelBounds, "Cancel", PanelFontRole.Button, palette.TextPrimary, PanelTextAlignment.Center)); 1410commands.Add(new TextCommand(acceptBounds, accept, PanelFontRole.Button, palette.OnColor, PanelTextAlignment.Center));
src\Aspire.Tray\Common\TrayPanelScene.cs (2)
76PanelTextAlignment Alignment = PanelTextAlignment.Leading,
src\Aspire.Tray\Linux\LinuxTrayPanel.cs (2)
696PanelTextAlignment.Center => 1, 697PanelTextAlignment.Trailing => 2,
TrayPanelTests.cs (1)
868if (text.Alignment == PanelTextAlignment.Leading && text.ExplicitBaseline is null)