fix: consistent title style in scenario renderer

This commit is contained in:
2026-03-23 17:04:29 +01:00
parent 9c78b3f852
commit 15a4034a77

View File

@@ -43,13 +43,16 @@ public class ScenarioSectionRenderer : IPdfSectionRenderer
float w = page.GetClientSize().Width;
float y = 0;
// ── Titolo centrato ────────────────────────────────────────────
var titleFont = new PdfStandardFont(PdfFontFamily.Helvetica, 16f, PdfFontStyle.Bold);
g.DrawString("Analisi Scenario", titleFont,
new PdfSolidBrush(Color.FromArgb(255, 46, 80, 144)),
new RectangleF(0, y, w, 28),
new PdfStringFormat(PdfTextAlignment.Center));
y += 40;
// ── Titolo ────────────────────────────────────────────────────
g.DrawString("Analisi Scenario", PdfTheme.SectionTitleFont,
PdfTheme.AccentBlueBrush,
new RectangleF(0, y, w, 20f),
new PdfStringFormat(PdfTextAlignment.Left));
y += 24f;
// Linea separatrice blu
g.DrawLine(PdfTheme.AccentBluePen, 0, y, w, y);
y += 8f;
var scenario = data.Scenario;
if (scenario.Rows.Count == 0)