The Taste the Rainbow Release
This is a rather large release. Lots of fixes and enhancements, including optimizations to the DataTable.
There's also a rather nifty addition to the ProgressBar widget. Checkout the gradient:
Screen.Recording.2024-07-18.at.14.17.05.mov
We've also polished the API docs, which should hopefully make them easier to navigate...
https://textual.textualize.io/api/app/
[0.73.0] - 2024-07-18
Added
- Added
TextArea.line_number_startreactive attribute #4471 - Added
TextArea.matching_bracket_locationproperty #4764 - Added
DOMNode.mutate_reactive#4731 - Added "quality" parameter to
textual.color.Gradient#4739 - Added
textual.color.Gradient.get_rich_color#4739 Widget.remove_childrennow accepts an iterable if widgets in addition to a selector #4735- Raise
ValueErrorwith improved error message when number of cells inserted usingDataTable.add_rowdoesn't match the number of columns in the table #4742 - Add
Tree.move_cursorto programmatically move the cursor without selecting the node #4753 - Added
Footercomponent style handling of padding for the key/description #4651 StringKeyis now exported fromdata_table#4760TreeNode.addandTreeNode.add_leafnow acceptsbeforeandafterarguments to position a new node #4772- Added a
gradientparameter to theProgressBarwidget #4774
Fixed
- Fixed issue with
Tabswhere disabled tabs could still be activated by clicking the underline #4701 - Fixed scroll_visible with margin #4719
- Fixed programmatically disabling button stuck in hover state #4724
- Fixed
DataTablepoor performance on startup and focus change when rows contain multi-line content #4748 - Fixed
TreeandDirectoryTreehorizontal scrolling off-by-2 #4744 - Fixed text-opacity in component styles #4747
- Ensure
Tree.select_nodesendsNodeSelectedmessage #4753 - Fixed message handlers not working when message types are assigned as the value of class vars #3940
- Fixed
CommandPalettenot focusing the input when opened whenApp.AUTO_FOCUSdoesn't match the input #4763 SelectionList.SelectionToggledwill now be sent for each option when a bulk toggle is performed (e.g.toggle_all). Previously no messages were sent at all. #4759- Fixed focus styles not being updated on blur #4771
Changed
- "Discover" hits in the command palette are no longer sorted alphabetically #4720
TreeNodeSelectedmessages are now posted beforeTreeNodeExpandedmessages
when an expandable node is selected #4753Markdown.LinkClicked.hrefis now automatically unquoted #4749- The mouse cursor hover effect of
TreeandDirectoryTreewill no longer linger after the mouse leaves the widget #4766