22 references to HeaderHeight
aspire-tray (22)
src\Aspire.Tray\Common\TrayPanel.cs (20)
122value = Math.Max(HeaderHeight + FooterHeight + RowHeight, value); 828var chrome = HeaderHeight + noticeHeight + FooterHeight; 830_viewport = new(0, HeaderHeight + noticeHeight, Width, Math.Max(0, height - chrome)); 843commands.Add(new FillPathCommand(PanelPath.RoundedRect(new(0, 0, Width, HeaderHeight), CornerRadius, CornerRadius, 0, 0), palette.Gutter)); 844commands.Add(new FillPathCommand(PanelPath.Rectangle(new(0, HeaderHeight - 1, Width, 1)), palette.Separator)); 962Line(HeaderHeight / 2, "header", new(0, 0, Width, HeaderHeight)); 963if (_viewport.Y > HeaderHeight) 966Line(HeaderHeight + 8 + 17, "notice", new(0, HeaderHeight, Width, _viewport.Y - HeaderHeight)); 967Box(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))); 972Box(new(EdgeMargin, HeaderHeight / 2 - 10, 20, 20), "logo"); 976Box(new(LeadingCenter - 8, HeaderHeight / 2 - 8, 16, 16), "back"); 1069internal static double HeaderBaseline => HeaderHeight / 2 + PanelFonts.CapHeight(PanelFontRole.Title) / 2; 1073var middle = HeaderHeight / 2; 1091var banner = new PanelRect(RowInset, HeaderHeight + 8, Width - 2 * RowInset, height); 1417var back = new PanelRect(LeadingCenter - ButtonSize / 2, (HeaderHeight - ButtonSize) / 2, ButtonSize, ButtonSize); 1422var title = new PanelRect(TextLeft, (HeaderHeight - 20) / 2, Width - EdgeMargin - TextLeft, 20);
TrayApplication.NativeSmoke.cs (2)
446NativeSmokeHarness.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.");