22 references to ButtonSize
aspire-tray (22)
src\Aspire.Tray\Common\TrayPanel.cs (22)
64public const double RowContentRight = TrailingCenter + ButtonSize / 2; 982var center = TrailingCenter - i * (ButtonSize + ButtonGap); 1004var center = TrailingCenter - i * (ButtonSize + ButtonGap); 1037Line(top + ConfirmHeight - 4 - 10 - ButtonSize / 2, "confirm buttons", span); 1190var textRight = RowContentRight - buttons.Length * ButtonSize - (buttons.Length - 1) * ButtonGap - 8; 1197var x = RowContentRight - buttons.Length * ButtonSize - (buttons.Length - 1) * ButtonGap; 1200var bounds = new PanelRect(x, top + (RowHeight - ButtonSize) / 2, ButtonSize, ButtonSize); 1201x += ButtonSize + ButtonGap; 1382var controlsY = card.Bottom - 10 - ButtonSize; 1386var acceptBounds = new PanelRect(card.Right - 10 - ButtonWidth, controlsY, ButtonWidth, ButtonSize); 1387var cancelBounds = new PanelRect(acceptBounds.X - 8 - ButtonWidth, controlsY, ButtonWidth, ButtonSize); 1417var back = new PanelRect(LeadingCenter - ButtonSize / 2, (HeaderHeight - ButtonSize) / 2, ButtonSize, ButtonSize); 1483_settings is null ? "Settings" : "Close settings", (string?)null, right - 3 * ButtonSize - 2 * ButtonGap), 1484(PanelTargetKind.Documentation, PanelIcon.Globe, "Open Aspire documentation", "Documentation", null, right - 2 * ButtonSize - ButtonGap), 1485(PanelTargetKind.Quit, PanelIcon.Power, _quitVerb, quitDescription, quitDescription, right - ButtonSize) 1488var bounds = new PanelRect(x, footer.Y + 8, ButtonSize, ButtonSize);