24 references to HeaderHeight
aspire-tray (24)
src\Aspire.Tray\Common\TrayPanel.cs (22)
128
value = Math.Max(
HeaderHeight
+ FooterHeight, value);
911
var availableNoticeHeight = _maxHeight -
HeaderHeight
- FooterHeight;
933
var chrome =
HeaderHeight
+ noticeHeight + FooterHeight;
935
_viewport = new(0,
HeaderHeight
+ noticeHeight, Width, Math.Max(0, height - chrome));
948
commands.Add(new FillPathCommand(PanelPath.RoundedRect(new(0, 0, Width,
HeaderHeight
), CornerRadius, CornerRadius, 0, 0), palette.Gutter));
949
commands.Add(new FillPathCommand(PanelPath.Rectangle(new(0,
HeaderHeight
- 1, Width, 1)), palette.Separator));
1065
Line(
HeaderHeight
/ 2, "header", new(0, 0, Width,
HeaderHeight
));
1066
if (_viewport.Y >
HeaderHeight
)
1069
Line(
HeaderHeight
+ 8 + 17, "notice", new(0,
HeaderHeight
, Width, _viewport.Y -
HeaderHeight
));
1070
Box(new(LeadingCenter - 8,
HeaderHeight
+ 8 + 9, 16, 16), "notice icon");
1072
_guides.Add(new(PanelGuideKind.Baseline, HeaderBaseline, "header baseline", new(TextLeft, 0, Width - TextLeft,
HeaderHeight
)));
1075
Box(new(EdgeMargin,
HeaderHeight
/ 2 - 10, 20, 20), "logo");
1079
Box(new(LeadingCenter - 8,
HeaderHeight
/ 2 - 8, 16, 16), "back");
1172
internal static double HeaderBaseline =>
HeaderHeight
/ 2 + PanelFonts.CapHeight(PanelFontRole.Title) / 2;
1176
var middle =
HeaderHeight
/ 2;
1200
var banner = new PanelRect(RowInset, compact ?
HeaderHeight
:
HeaderHeight
+ 8, Width - 2 * RowInset, height);
1530
var back = new PanelRect(LeadingCenter - ButtonSize / 2, (
HeaderHeight
- ButtonSize) / 2, ButtonSize, ButtonSize);
1535
var title = new PanelRect(TextLeft, (
HeaderHeight
- 20) / 2, Width - EdgeMargin - TextLeft, 20);
TrayApplication.NativeSmoke.cs (2)
446
NativeSmokeHarness.Require(panel.Scene.Accessibility.Single(element => element.Key.Label == "header.status").Bounds.CenterY == TrayPanel.
HeaderHeight
/ 2
447
&& TrayPanel.
HeaderHeight
== TrayPanel.FooterHeight, "The header must be one line, as tall as the footer.");