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