fix: DrawSectionLabel title style + thin borders + correct font in dividend renderer

This commit is contained in:
2026-03-23 17:17:49 +01:00
parent b1003bc3f1
commit b93a16ce6e

View File

@@ -78,11 +78,11 @@ public class DividendSectionRenderer
float y = PdfTheme.PageMargin;
// ── Titolo stile DrawSectionLabel ─────────────────────────────
float rh0 = PdfTheme.RowHeight;
g.DrawRectangle(PdfTheme.TableHeaderBrush, new RectangleF(x0, y, w, rh0));
g.DrawString("Sottostanti e Dividendi", PdfTheme.TableBold, PdfBrushes.White,
new RectangleF(x0 + 4f, y + 2f, w - 8f, rh0));
y += rh0 + 4f;
g.DrawRectangle(PdfTheme.AccentBlueBrush, new RectangleF(x0, y, 3f, 14f));
g.DrawString("Sottostanti e Dividendi", PdfTheme.Bold,
new PdfSolidBrush(PdfTheme.AccentBlue),
new RectangleF(x0 + 6f, y, w - 6f, 14f));
y += 16f;
// ── Calcolo fattore scala su larghezza reale ──────────────────
float totalNominal = ColWidths.Sum();
@@ -228,6 +228,7 @@ public class DividendSectionRenderer
}
// Pagina singola: specifica garantisce max ~20 sottostanti per certificato
PdfTheme.ApplyThinBorders(grid);
grid.Draw(g, new PointF(x0, y));
}
}