"reverse" field added to Cell
"reverse"
field added to Cell
So before this change, if one wanted, say, an upper 5/8ths block (which doesn't exist), a lower 3/8ths block ("▃"
) could instead be used with the foreground and background colors swapped.
The issue with this is alpha compositing always composites with the background color! So the flipped foreground and background colors will look sorely out-of-place as soon as any transparency is enabled.
"reverse"
fixes this. Now, an upper 5/8ths block can be created by setting the cell's "reverse"
field and alpha compositing will still look correct using the "bg_color"
field.
Additional changes:
- Minor fixes to ansi parsing on windows.
text_tools.cell
function renamed totext_tools.new_cell
.- ANSI art viewer (parses and displays
.ans
files) added. - PosHint and SizeHint dataclasses removed. PosHintDict and SizeHintDict renamed PosHint/SizeHint, respectively.
- Added optional filter for FileChooser.
- Added dynamic bars option to ScrollView.
- Continued doc string improvements.
- Small bug fixes.