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 w = page.GetClientSize().Width;
|
||||||
float y = 0;
|
float y = 0;
|
||||||
|
|
||||||
// ── Titolo centrato ────────────────────────────────────────────
|
// ── Titolo ────────────────────────────────────────────────────
|
||||||
var titleFont = new PdfStandardFont(PdfFontFamily.Helvetica, 16f, PdfFontStyle.Bold);
|
g.DrawString("Analisi Scenario", PdfTheme.SectionTitleFont,
|
||||||
g.DrawString("Analisi Scenario", titleFont,
|
PdfTheme.AccentBlueBrush,
|
||||||
new PdfSolidBrush(Color.FromArgb(255, 46, 80, 144)),
|
new RectangleF(0, y, w, 20f),
|
||||||
new RectangleF(0, y, w, 28),
|
new PdfStringFormat(PdfTextAlignment.Left));
|
||||||
new PdfStringFormat(PdfTextAlignment.Center));
|
y += 24f;
|
||||||
y += 40;
|
|
||||||
|
// 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)
|
||||||
|
|||||||
Reference in New Issue
Block a user