fix: consistent title style in scenario renderer
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user