22 references to HeaderHeight
aspire-tray (22)
src\Aspire.Tray\Common\TrayPanel.cs (20)
122
value = Math.Max(
HeaderHeight
+ FooterHeight + RowHeight, value);
828
var chrome =
HeaderHeight
+ noticeHeight + FooterHeight;
830
_viewport = new(0,
HeaderHeight
+ noticeHeight, Width, Math.Max(0, height - chrome));
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));
962
Line(
HeaderHeight
/ 2, "header", new(0, 0, Width,
HeaderHeight
));
963
if (_viewport.Y >
HeaderHeight
)
966
Line(
HeaderHeight
+ 8 + 17, "notice", new(0,
HeaderHeight
, Width, _viewport.Y -
HeaderHeight
));
967
Box(new(LeadingCenter - 8,
HeaderHeight
+ 8 + 9, 16, 16), "notice icon");
969
_guides.Add(new(PanelGuideKind.Baseline, HeaderBaseline, "header baseline", new(TextLeft, 0, Width - TextLeft,
HeaderHeight
)));
972
Box(new(EdgeMargin,
HeaderHeight
/ 2 - 10, 20, 20), "logo");
976
Box(new(LeadingCenter - 8,
HeaderHeight
/ 2 - 8, 16, 16), "back");
1069
internal static double HeaderBaseline =>
HeaderHeight
/ 2 + PanelFonts.CapHeight(PanelFontRole.Title) / 2;
1073
var middle =
HeaderHeight
/ 2;
1091
var banner = new PanelRect(RowInset,
HeaderHeight
+ 8, Width - 2 * RowInset, height);
1417
var back = new PanelRect(LeadingCenter - ButtonSize / 2, (
HeaderHeight
- ButtonSize) / 2, ButtonSize, ButtonSize);
1422
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.");