bfdb7f8028
This commit introduces the following changes to themes and segment rendering: - Spacer segments are now regular string/function type segments with "width": "auto" in the themes. - The "rjust"/"ljust" properties have been replaced by the "width" option combined with a new "align" option. - Renderer._render_segments() is now a generator which renders each segment separately, and assigns the rendered contents to "_rendered_hl" and "_rendered_raw" in the segment dict. - Renderer.render() returns the segments by joining the "_rendered_hl" values for each segment. - Spacer segment widths are calculated in the render() method, and assigned to "_space_left" and "_space_right" in the segment dict. These spaces are then applied in Renderer._render_segments(). - All space characters are converted to no-break spaces (U+00A0) in the "_rendered_hl" property. Refs #113. Refs #154. |
||
---|---|---|
.. | ||
source | ||
.gitignore | ||
Makefile |