src\Aspire.Tray\Common\TrayPanel.cs (24)
41private const double RowContentRight = Width - RowInset - 8;
807_viewport = new(0, HeaderHeight + noticeHeight, Width, Math.Max(0, height - chrome));
813var panel = new PanelRect(0, 0, Width, height);
814var footer = new PanelRect(0, height - FooterHeight, Width, FooterHeight);
817commands.Add(new FillPathCommand(PanelPath.Rectangle(new(0, footer.Y, Width, 1)), palette.Separator));
820commands.Add(new FillPathCommand(PanelPath.RoundedRect(new(0, 0, Width, HeaderHeight), CornerRadius, CornerRadius, 0, 0), palette.Gutter));
821commands.Add(new FillPathCommand(PanelPath.Rectangle(new(0, HeaderHeight - 1, Width, 1)), palette.Separator));
839commands.Add(new FillPathCommand(PanelPath.Rectangle(new(0, _viewport.Y, Width, 1)), palette.Separator));
892commands.Add(new FillPathCommand(PanelPath.RoundedRect(new(Width - 7, thumbY, 4, thumb), 2), palette.TextTertiary.WithAlpha(0.4)));
916return new(Width, height, commands, targets, accessible);
919private const double NoticeTextWidth = Width - 46 - 22;
937var statusBounds = new PanelRect(statusLeft, middle - 8, Width - statusLeft - 16, 16);
944var banner = new PanelRect(12, HeaderHeight + 8, Width - 24, height);
966var art = new PanelRect(Width / 2 - 16, top + 20, 32, 32);
975var titleBounds = new PanelRect(20, top + 62, Width - 40, 20);
976var hintBounds = new PanelRect(44, top + 84, Width - 88, 34);
1003var toggle = new PanelRect(RowInset, top + 4, Width - 2 * RowInset, 24);
1026var row = new PanelRect(RowInset, top + 2, Width - 2 * RowInset, RowHeight - 4);
1143var card = new PanelRect(RowInset, top, Width - 2 * RowInset, height - ActionListGap);
1215var card = new PanelRect(RowInset, top + 4, Width - 2 * RowInset, ConfirmHeight - 8);
1273var title = new PanelRect(back.Right + 8, (HeaderHeight - 20) / 2, Width - back.Right - 24, 20);
1281var row = new PanelRect(RowInset, top + 2, Width - 2 * RowInset, SettingsRowHeight - 4);
1307var name = new PanelRect(20, top + 4, Width - 40, 20);
1317var bounds = new PanelRect(20, y, Width - 40, 16);