feat: add box header colors/brushes and fix footer branding offset
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -33,6 +33,14 @@ public static class PdfTheme
|
|||||||
public static readonly Color TableAltRow = Color.FromArgb(255, 247, 249, 252); // #F7F9FC
|
public static readonly Color TableAltRow = Color.FromArgb(255, 247, 249, 252); // #F7F9FC
|
||||||
// TableHeaderBg is AccentBlue — use AccentBlueBrush / TableHeaderBrush directly
|
// TableHeaderBg is AccentBlue — use AccentBlueBrush / TableHeaderBrush directly
|
||||||
|
|
||||||
|
// Colori box header pagina 1
|
||||||
|
public static readonly Color AccentBlueDark = Color.FromArgb(255, 13, 71, 161); // #0D47A1
|
||||||
|
public static readonly Color BoxLightBlueBg = Color.FromArgb(255, 235, 242, 251); // #EBF2FB
|
||||||
|
public static readonly Color BoxGrayBg = Color.FromArgb(255, 245, 245, 245); // #F5F5F5
|
||||||
|
public static readonly Color BoxGrayAccent = Color.FromArgb(255, 136, 136, 136); // #888888
|
||||||
|
public static readonly Color BoxGrayLabel = Color.FromArgb(255, 102, 102, 102); // #666666
|
||||||
|
public static readonly Color BoxGrayValue = Color.FromArgb(255, 51, 51, 51); // #333333
|
||||||
|
|
||||||
// ─── Font ──────────────────────────────────────────────────────────
|
// ─── Font ──────────────────────────────────────────────────────────
|
||||||
private static readonly PdfStandardFont _fontRegular = new(PdfFontFamily.Helvetica, 8f);
|
private static readonly PdfStandardFont _fontRegular = new(PdfFontFamily.Helvetica, 8f);
|
||||||
private static readonly PdfStandardFont _fontBold = new(PdfFontFamily.Helvetica, 8f, PdfFontStyle.Bold);
|
private static readonly PdfStandardFont _fontBold = new(PdfFontFamily.Helvetica, 8f, PdfFontStyle.Bold);
|
||||||
@@ -84,6 +92,12 @@ public static class PdfTheme
|
|||||||
public static PdfPen SeparatorPen => new PdfPen(SeparatorLine, 0.5f);
|
public static PdfPen SeparatorPen => new PdfPen(SeparatorLine, 0.5f);
|
||||||
public static PdfPen TableBorderPen => new PdfPen(TableBorder, 0.5f);
|
public static PdfPen TableBorderPen => new PdfPen(TableBorder, 0.5f);
|
||||||
public static PdfPen AccentBluePen => new PdfPen(AccentBlue, 2.5f);
|
public static PdfPen AccentBluePen => new PdfPen(AccentBlue, 2.5f);
|
||||||
|
public static PdfBrush AccentBlueDarkBrush => new PdfSolidBrush(AccentBlueDark);
|
||||||
|
public static PdfBrush BoxLightBlueBgBrush => new PdfSolidBrush(BoxLightBlueBg);
|
||||||
|
public static PdfBrush BoxGrayBgBrush => new PdfSolidBrush(BoxGrayBg);
|
||||||
|
public static PdfBrush BoxGrayAccentBrush => new PdfSolidBrush(BoxGrayAccent);
|
||||||
|
public static PdfBrush BoxGrayLabelBrush => new PdfSolidBrush(BoxGrayLabel);
|
||||||
|
public static PdfBrush BoxGrayValueBrush => new PdfSolidBrush(BoxGrayValue);
|
||||||
|
|
||||||
// ─── Utility ───────────────────────────────────────────────────────
|
// ─── Utility ───────────────────────────────────────────────────────
|
||||||
public static PdfBrush ValueBrush(decimal? value)
|
public static PdfBrush ValueBrush(decimal? value)
|
||||||
@@ -200,7 +214,7 @@ public static class PdfTheme
|
|||||||
Font = Footer,
|
Font = Footer,
|
||||||
Brush = AccentBlueBrush,
|
Brush = AccentBlueBrush,
|
||||||
};
|
};
|
||||||
webLink.DrawTextWebLink(g, new PointF(prefixWidth, footerY));
|
webLink.DrawTextWebLink(g, new PointF(prefixWidth + 2f, footerY));
|
||||||
|
|
||||||
// Numero pagina a destra
|
// Numero pagina a destra
|
||||||
g.DrawString(pageLabel, Footer, FooterTextBrush,
|
g.DrawString(pageLabel, Footer, FooterTextBrush,
|
||||||
|
|||||||
Reference in New Issue
Block a user