mirror of https://github.com/eyhc1/rendercv.git
update classic theme settings
This commit is contained in:
parent
f5c4e84952
commit
d700c87a50
|
@ -131,11 +131,7 @@ class ClassicThemeOptions(pydantic.BaseModel):
|
||||||
model_config = pydantic.ConfigDict(extra="forbid")
|
model_config = pydantic.ConfigDict(extra="forbid")
|
||||||
|
|
||||||
theme: Literal["classic"]
|
theme: Literal["classic"]
|
||||||
font: Literal["SourceSans3", "Roboto", "EBGaramond"] = pydantic.Field(
|
|
||||||
default="SourceSans3",
|
|
||||||
title="Font",
|
|
||||||
description="The font of the CV.",
|
|
||||||
)
|
|
||||||
font_size: Literal["10pt", "11pt", "12pt"] = pydantic.Field(
|
font_size: Literal["10pt", "11pt", "12pt"] = pydantic.Field(
|
||||||
default="10pt",
|
default="10pt",
|
||||||
title="Font Size",
|
title="Font Size",
|
||||||
|
@ -146,7 +142,7 @@ class ClassicThemeOptions(pydantic.BaseModel):
|
||||||
title="Page Size",
|
title="Page Size",
|
||||||
description="The page size of the CV. It can be a4paper or letterpaper.",
|
description="The page size of the CV. It can be a4paper or letterpaper.",
|
||||||
)
|
)
|
||||||
primary_color: pydantic_color.Color = pydantic.Field(
|
color: pydantic_color.Color = pydantic.Field(
|
||||||
default="rgb(0,79,144)",
|
default="rgb(0,79,144)",
|
||||||
validate_default=True,
|
validate_default=True,
|
||||||
title="Primary Color",
|
title="Primary Color",
|
||||||
|
@ -158,6 +154,13 @@ class ClassicThemeOptions(pydantic.BaseModel):
|
||||||
),
|
),
|
||||||
examples=["Black", "7fffd4", "rgb(0,79,144)", "hsl(270, 60%, 70%)"],
|
examples=["Black", "7fffd4", "rgb(0,79,144)", "hsl(270, 60%, 70%)"],
|
||||||
)
|
)
|
||||||
|
disable_page_numbering: bool = pydantic.Field(
|
||||||
|
default=False,
|
||||||
|
title="Disable Page Numbering",
|
||||||
|
description=(
|
||||||
|
"If this option is set to true, then the page numbering will be disabled."
|
||||||
|
),
|
||||||
|
)
|
||||||
date_and_location_width: LaTeXDimension = pydantic.Field(
|
date_and_location_width: LaTeXDimension = pydantic.Field(
|
||||||
default="4.1 cm",
|
default="4.1 cm",
|
||||||
title="Date and Location Column Width",
|
title="Date and Location Column Width",
|
||||||
|
|
Loading…
Reference in New Issue