Skip to main content

Module section_chrome

Module section_chrome 

Source
Expand description

Reusable section chrome helpers for messages, help, and guide rendering.

This module exists so the rest of the UI can ask for titled sections and framed blocks without duplicating border logic in every renderer. It keeps section-frame policy, title styling, and ASCII/Unicode fallback behavior in one place.

Contract:

  • chrome helpers may depend on theme/style resolution
  • they should not decide when sections are shown, only how a requested section frame is rendered

Structs§

SectionRenderContext
Context required to render section chrome with semantic styling.
SectionStyleTokens
Style tokens applied to section borders and titles.

Enums§

RuledSectionPolicy
Placement policy for ruled section separators across sibling sections.
SectionFrameStyle
Frame style used when rendering section chrome.

Functions§

render_section_block_with_overrides
Renders one titled section body with the requested frame and style tokens.
render_section_divider_with_columns
Renders a section divider while controlling the title start column.
render_section_divider_with_overrides
Renders a section divider line using explicit style overrides.