From 7b6190a70e7bd6bdc7a9b2b46aede1d35fbd60ff Mon Sep 17 00:00:00 2001 From: Sina Atalay <79940989+sinaatalay@users.noreply.github.com> Date: Mon, 8 Apr 2024 19:26:02 +0000 Subject: [PATCH] design: add `last_updated_date_style` option --- rendercv/themes/__init__.py | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/rendercv/themes/__init__.py b/rendercv/themes/__init__.py index 8947286..77f411f 100644 --- a/rendercv/themes/__init__.py +++ b/rendercv/themes/__init__.py @@ -235,6 +235,15 @@ class ThemeOptions(pydantic.BaseModel): " in the header. The default value is true." ), ) + last_updated_date_style: str = pydantic.Field( + default="Last updated in TODAY", + title="Last Updated Date Style", + description=( + "The style of the last updated date. The following placeholder can be" + " used:\n- TODAY: Today's month and year (April 2024)\nThe default value is" + " Last updated in TODAY." + ), + ) header_font_size: LaTeXDimension = pydantic.Field( default="30 pt", title="Header Font Size", @@ -243,7 +252,9 @@ class ThemeOptions(pydantic.BaseModel): " 30 pt." ), ) - text_alignment: Literal["left-aligned", "justified", "justified-with-no-hyphenation"] = pydantic.Field( + text_alignment: Literal[ + "left-aligned", "justified", "justified-with-no-hyphenation" + ] = pydantic.Field( default="justified", title="Text Alignment", description="The alignment of the text. The default value is justified.",