fix: DrawSectionLabel title style in scenario renderer

This commit is contained in:
2026-03-23 17:17:36 +01:00
parent 031a1acc1a
commit b1003bc3f1

View File

@@ -44,15 +44,12 @@ public class ScenarioSectionRenderer : IPdfSectionRenderer
float y = 0; float y = 0;
// ── Titolo ──────────────────────────────────────────────────── // ── Titolo ────────────────────────────────────────────────────
g.DrawString("Analisi Scenario", PdfTheme.SectionTitleFont, // Accent line verticale sinistra (3pt wide, 14pt tall) + testo blue su sfondo bianco
PdfTheme.AccentBlueBrush, g.DrawRectangle(PdfTheme.AccentBlueBrush, new RectangleF(0, y, 3f, 14f));
new RectangleF(0, y, w, 20f), g.DrawString("Analisi Scenario", PdfTheme.Bold,
new PdfStringFormat(PdfTextAlignment.Left)); new PdfSolidBrush(PdfTheme.AccentBlue),
y += 24f; new RectangleF(6f, y, w, 14f));
y += 16f;
// Linea separatrice blu
g.DrawLine(PdfTheme.AccentBluePen, 0, y, w, y);
y += 8f;
var scenario = data.Scenario; var scenario = data.Scenario;
if (scenario.Rows.Count == 0) if (scenario.Rows.Count == 0)