24 references to HeaderHeight
aspire-tray (24)
src\Aspire.Tray\Common\TrayPanel.cs (22)
128value = Math.Max(HeaderHeight + FooterHeight, value); 911var availableNoticeHeight = _maxHeight - HeaderHeight - FooterHeight; 933var chrome = HeaderHeight + noticeHeight + FooterHeight; 935_viewport = new(0, HeaderHeight + noticeHeight, Width, Math.Max(0, height - chrome)); 948commands.Add(new FillPathCommand(PanelPath.RoundedRect(new(0, 0, Width, HeaderHeight), CornerRadius, CornerRadius, 0, 0), palette.Gutter)); 949commands.Add(new FillPathCommand(PanelPath.Rectangle(new(0, HeaderHeight - 1, Width, 1)), palette.Separator)); 1065Line(HeaderHeight / 2, "header", new(0, 0, Width, HeaderHeight)); 1066if (_viewport.Y > HeaderHeight) 1069Line(HeaderHeight + 8 + 17, "notice", new(0, HeaderHeight, Width, _viewport.Y - HeaderHeight)); 1070Box(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))); 1075Box(new(EdgeMargin, HeaderHeight / 2 - 10, 20, 20), "logo"); 1079Box(new(LeadingCenter - 8, HeaderHeight / 2 - 8, 16, 16), "back"); 1172internal static double HeaderBaseline => HeaderHeight / 2 + PanelFonts.CapHeight(PanelFontRole.Title) / 2; 1176var middle = HeaderHeight / 2; 1200var banner = new PanelRect(RowInset, compact ? HeaderHeight : HeaderHeight + 8, Width - 2 * RowInset, height); 1530var back = new PanelRect(LeadingCenter - ButtonSize / 2, (HeaderHeight - ButtonSize) / 2, ButtonSize, ButtonSize); 1535var 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.");