engineeringresumes: update default settings

This commit is contained in:
Sina Atalay 2024-04-29 00:18:15 +03:00
parent 0550e775be
commit 40493c8001
1 changed files with 35 additions and 0 deletions

View File

@ -7,6 +7,7 @@ from .. import (
ThemeOptions, ThemeOptions,
EntryAreaMargins, EntryAreaMargins,
HighlightsAreaMargins, HighlightsAreaMargins,
HeaderMargins,
Margins, Margins,
LaTeXDimension, LaTeXDimension,
) )
@ -44,6 +45,35 @@ class HighlightsAreaMarginsForEngineeringresumes(HighlightsAreaMargins):
) )
class HeaderMarginsForEngineeringresumes(HeaderMargins):
"""This class is a data model for the header margins."""
vertical_between_name_and_connections: LaTeXDimension = pydantic.Field(
default="5 pt",
title="Vertical Margin Between the Name and Connections",
description=(
"The vertical margin between the name of the person and the connections."
" The default value is 5 pt."
),
)
bottom: LaTeXDimension = pydantic.Field(
default="5 pt",
title="Bottom Margin",
description=(
"The bottom margin of the header, i.e., the vertical margin between the"
" connections and the first section title. The default value is 5 pt."
),
)
horizontal_between_connections: LaTeXDimension = pydantic.Field(
default="10 pt",
title="Space Between Connections",
description=(
"The space between the connections (like phone, email, and website). The"
" default value is 20 pt."
),
)
class MarginsForEngineeringresumes(Margins): class MarginsForEngineeringresumes(Margins):
"""This class is a data model for the margins.""" """This class is a data model for the margins."""
@ -57,6 +87,11 @@ class MarginsForEngineeringresumes(Margins):
title="Highlights Area Margins", title="Highlights Area Margins",
description="Highlights area margins.", description="Highlights area margins.",
) )
header: HeaderMarginsForEngineeringresumes = pydantic.Field(
default=HeaderMarginsForEngineeringresumes(),
title="Header Margins",
description="Header margins.",
)
class EngineeringresumesThemeOptions(ThemeOptions): class EngineeringresumesThemeOptions(ThemeOptions):