The focused release
Lots of refinements and enhancements here!
[0.53.0] - 2023-03-18
Added
- Mapping of ANSI colors to hex codes configurable via
App.ansi_theme_darkandApp.ansi_theme_light#4192 Pilot.resize_terminalto resize the terminal in testing #4212- Added
sort_childrenmethod #4244 - Support for pseudo-classes in nested TCSS #4039
Fixed
- Fixed
TextArea.code_editormissing recently added attributes #4172 - Fixed
Sparklinenot working with data in adeque#3899 - Tooltips are now cleared when the related widget is no longer under them #3045
- Simplified tree-sitter highlight queries for HTML, which also seems to fix segfault issue #4195
- Fixed
DirectoryTree.pathno longer reacting to new values #4208 - Fixed content size cache with Pretty widget #4211
- Fixed
grid-gutterinteraction with Pretty widget #4219 - Fixed
TextAreastyling issue on alternate screens #4220 - Fixed writing to invisible
RichLog#4223 - Fixed
RichLog.min_widthnot being used #4223 - Rename
CollapsibleTitle.action_toggletoaction_toggle_collapsibleto fix clash withDOMNode.action_toggle#4221 - Markdown component classes weren't refreshed when watching for CSS #3464
- Rename
Switch.action_toggletoaction_toggle_switchto fix clash withDOMNode.action_toggle#4262 - Fixed
OptionList.OptionHighlightedleaking out ofSelect#4224 - Fixed
Tabenable/disable messages leaking intoTabbedContent#4233 - Fixed a style leak from
TabbedContent#4232 - Fixed active hidden scrollbars not releasing the mouse #4274
- Fixed the mouse not being released when hiding a
TextAreawhile mouse selection is happening #4292 - Fix mouse scrolling not working when mouse cursor is over a disabled child widget #4242
Changed
- Clicking a non focusable widget focus ancestors #4236
- BREAKING: widget class names must start with a capital letter or an underscore
_#4252 - BREAKING: for many widgets, messages are now sent when programmatic changes that mirror user input are made #4256
- Changed
Collapsible - Changed
Markdown - Changed
Select - Changed
SelectionList - Changed
TabbedContent - Changed
Tabs - Changed
TextArea - Changed
Tree
- Changed
- Improved ETA calculation for ProgressBar #4271
- BREAKING:
AppFocusandAppBlurare now posted when the terminal window gains or loses focus, if the terminal supports this #4265- When the terminal window loses focus, the currently-focused widget will also lose focus.
- When the terminal window regains focus, the previously-focused widget will regain focus.
- TextArea binding for ctrl+k will now delete the line if the line is empty #4277
- The active tab (in
Tabs) / tab pane (inTabbedContent) can now be unset #4241