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
)
| 38 | |
| 39 | |
| 40 | def 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 | |
| 60 | def resolve_colors( |