Skip to main content

Module tooltip

Module tooltip 

Source
Expand description

Pango-bordered tooltip primitives shared by every vendor renderer.

Extracted from the per-vendor implementations because every tooltip (Anthropic, OpenAI, Z.AI, OpenRouter) draws the same kind of box: blue corners + horizontals, dim separators, centered title, left-padded body lines. The only thing that varies is the line content.

Mirrors the visual style of claudebar’s ${B}╭${border_h}╮${E} block (claudebar:843-859).

Enums§

Line
One row of the bordered tooltip box.

Functions§

pad_center
Pad s symmetrically; when the difference is odd, the extra space goes on the right (claudebar center_pad precedent).
pad_right
Pad s on the right with spaces so its visible width reaches inner_w.
render_bordered
Render the bordered tooltip. Width is computed from the widest body/center line so different vendors auto-size correctly.