24 references to ButtonSize
Aspire.Tray.Tests (24)
src\Aspire.Tray\Common\TrayPanel.cs (22)
67public const double RowContentRight = TrailingCenter + ButtonSize / 2; 1085var center = TrailingCenter - i * (ButtonSize + ButtonGap); 1107var center = TrailingCenter - i * (ButtonSize + ButtonGap); 1140Line(top + ConfirmHeight - 4 - 10 - ButtonSize / 2, "confirm buttons", span); 1303? RowContentRight - buttons.Length * ButtonSize - (buttons.Length - 1) * ButtonGap - 8 1311var x = RowContentRight - buttons.Length * ButtonSize - (buttons.Length - 1) * ButtonGap; 1314var bounds = new PanelRect(x, top + (RowHeight - ButtonSize) / 2, ButtonSize, ButtonSize); 1315x += ButtonSize + ButtonGap; 1495var controlsY = card.Bottom - 10 - ButtonSize; 1499var acceptBounds = new PanelRect(card.Right - 10 - ButtonWidth, controlsY, ButtonWidth, ButtonSize); 1500var cancelBounds = new PanelRect(acceptBounds.X - 8 - ButtonWidth, controlsY, ButtonWidth, ButtonSize); 1530var back = new PanelRect(LeadingCenter - ButtonSize / 2, (HeaderHeight - ButtonSize) / 2, ButtonSize, ButtonSize); 1593_settings is null ? "Settings" : "Close settings", (string?)null, right - 3 * ButtonSize - 2 * ButtonGap), 1594(PanelTargetKind.Documentation, PanelIcon.Globe, "Open Aspire documentation", "Documentation", null, right - 2 * ButtonSize - ButtonGap), 1595(PanelTargetKind.Quit, PanelIcon.Power, _quitVerb, _quitVerb, _quitVerb, right - ButtonSize) 1598var bounds = new PanelRect(x, footer.Y + 8, ButtonSize, ButtonSize);
TrayPanelTests.cs (2)
997Assert.Equal(TrayPanel.ButtonSize, button.Bounds.Width); 1583Assert.All(footer, target => Assert.Equal(TrayPanel.ButtonSize, target.Bounds.Width));