35 references to Width
aspire-tray (35)
src\Aspire.Tray\Common\TrayPanel.cs (34)
63
public const double TrailingCenter =
Width
- LeadingCenter;
830
_viewport = new(0, HeaderHeight + noticeHeight,
Width
, Math.Max(0, height - chrome));
836
var panel = new PanelRect(0, 0,
Width
, height);
837
var footer = new PanelRect(0, height - FooterHeight,
Width
, FooterHeight);
840
commands.Add(new FillPathCommand(PanelPath.Rectangle(new(0, footer.Y,
Width
, 1)), palette.Separator));
843
commands.Add(new FillPathCommand(PanelPath.RoundedRect(new(0, 0,
Width
, HeaderHeight), CornerRadius, CornerRadius, 0, 0), palette.Gutter));
844
commands.Add(new FillPathCommand(PanelPath.Rectangle(new(0, HeaderHeight - 1,
Width
, 1)), palette.Separator));
862
commands.Add(new FillPathCommand(PanelPath.Rectangle(new(0, _viewport.Y,
Width
, 1)), palette.Separator));
915
commands.Add(new FillPathCommand(PanelPath.RoundedRect(new(
Width
- 7, thumbY, 4, thumb), 2), palette.TextTertiary.WithAlpha(0.4)));
940
return new(
Width
, height, commands, targets, accessible) { Guides = _guides };
951
var all = new PanelRect(0, 0,
Width
, height);
955
(TrailingCenter, "trailing center"), (
Width
- EdgeMargin, "edge"), (RowContentRight, "button edge"),
956
(
Width
- RowInset, "row/card edge")
962
Line(HeaderHeight / 2, "header", new(0, 0,
Width
, HeaderHeight));
966
Line(HeaderHeight + 8 + 17, "notice", new(0, HeaderHeight,
Width
, _viewport.Y - HeaderHeight));
969
_guides.Add(new(PanelGuideKind.Baseline, HeaderBaseline, "header baseline", new(TextLeft, 0,
Width
- TextLeft, HeaderHeight)));
979
Line(footerTop + FooterHeight / 2, "footer", new(0, footerTop,
Width
, FooterHeight));
993
var span = new PanelRect(0, top,
Width
, item.Height);
1021
Line(middle, "action", new(0, itemTop,
Width
, ActionItemHeight));
1048
Box(new(
Width
/ 2 - 16, top + 20, 32, 32), "empty art");
1057
private const double NoticeTextWidth =
Width
- EdgeMargin - TextLeft;
1084
var statusBounds = new PanelRect(statusLeft, middle - 8,
Width
- EdgeMargin - statusLeft, 16);
1091
var banner = new PanelRect(RowInset, HeaderHeight + 8,
Width
- 2 * RowInset, height);
1114
var art = new PanelRect(
Width
/ 2 - 16, top + 20, 32, 32);
1123
var titleBounds = new PanelRect(20, top + 62,
Width
- 40, 20);
1124
var hintBounds = new PanelRect(44, top + 84,
Width
- 88, 34);
1151
var toggle = new PanelRect(RowInset, top + 4,
Width
- 2 * RowInset, 24);
1174
var row = new PanelRect(RowInset, top + 2,
Width
- 2 * RowInset, RowHeight - 4);
1291
var card = new PanelRect(RowInset, top,
Width
- 2 * RowInset, height - ActionListGap);
1363
var card = new PanelRect(RowInset, top + 4,
Width
- 2 * RowInset, ConfirmHeight - 8);
1422
var title = new PanelRect(TextLeft, (HeaderHeight - 20) / 2,
Width
- EdgeMargin - TextLeft, 20);
1430
var row = new PanelRect(RowInset, top + 2,
Width
- 2 * RowInset, SettingsRowHeight - 4);
1456
var name = new PanelRect(20, top + 4,
Width
- 40, 20);
1466
var bounds = new PanelRect(20, y,
Width
- 40, 16);
TrayApplication.Panel.cs (1)
184
var width = (int)Math.Round(TrayPanel.
Width
* scale);