MCPcopy Create free account
hub / github.com/Paper2Poster/Paper2Poster / create_theme_with_alignment

Function create_theme_with_alignment

utils/theme_utils.py:40–57  ·  view source on GitHub ↗

Create a new theme with vertical alignment configuration. Args: base_theme: Base theme dictionary section_title_vertical_align: Vertical alignment ("top", "middle", "bottom") Returns: Theme dictionary with alignment configuration

(
    base_theme: Dict[str, Any],
    section_title_vertical_align: Optional[str] = None
)

Source from the content-addressed store, hash-verified

38
39
40def create_theme_with_alignment(
41 base_theme: Dict[str, Any],
42 section_title_vertical_align: Optional[str] = None
43) -> Dict[str, Any]:
44 """
45 Create a new theme with vertical alignment configuration.
46
47 Args:
48 base_theme: Base theme dictionary
49 section_title_vertical_align: Vertical alignment ("top", "middle", "bottom")
50
51 Returns:
52 Theme dictionary with alignment configuration
53 """
54 theme = base_theme.copy()
55 if section_title_vertical_align:
56 theme['section_title_vertical_align'] = section_title_vertical_align
57 return theme
58
59
60def resolve_colors(

Callers 1

new_pipeline.pyFile · 0.90

Calls 1

copyMethod · 0.45

Tested by

no test coverage detected