From 40493c8001fec253f9a05af6437aadf6db77ad01 Mon Sep 17 00:00:00 2001 From: Sina Atalay Date: Mon, 29 Apr 2024 00:18:15 +0300 Subject: [PATCH] engineeringresumes: update default settings --- .../themes/engineeringresumes/__init__.py | 35 +++++++++++++++++++ 1 file changed, 35 insertions(+) diff --git a/rendercv/themes/engineeringresumes/__init__.py b/rendercv/themes/engineeringresumes/__init__.py index cba7bbc..0a74007 100644 --- a/rendercv/themes/engineeringresumes/__init__.py +++ b/rendercv/themes/engineeringresumes/__init__.py @@ -7,6 +7,7 @@ from .. import ( ThemeOptions, EntryAreaMargins, HighlightsAreaMargins, + HeaderMargins, Margins, 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): """This class is a data model for the margins.""" @@ -57,6 +87,11 @@ class MarginsForEngineeringresumes(Margins): title="Highlights Area Margins", description="Highlights area margins.", ) + header: HeaderMarginsForEngineeringresumes = pydantic.Field( + default=HeaderMarginsForEngineeringresumes(), + title="Header Margins", + description="Header margins.", + ) class EngineeringresumesThemeOptions(ThemeOptions):