See #1934. Simply put: the character that we were using doesn't render well
at all in Windows Terminal on Windows 10 or 11. This one isn't ideal as it
sits a little low, at least in some environments. I want to try this one on
for a wee bit and see how we feel about it.
Honestly, I'm not 100% happy with it; but right now it's the least-worst
option I've tried.
See #1934. Simply put: the character that we were doesn't render well at all
in Windows Terminal on Windows 10; while there are other options available,
few seem to work well there either. So here we go for a bold X; this should
render fine everywhere.
The changes here roll two issues into one change. With this commit:
- Scrolling up/down/etc using the keyboard now moves just one cell, rather
than moving the number of cells specified by the scroll sensitivity that's
intended for pointing devices. #1897
- Where appropriate the scrolling is done lazily; that is it is done after
the next refresh, helping to ensure that the scroll will take into account
any updates in the same parent call. #1774
* Renaming some component classes in DataTable
* Some more renaming of DataTable component classes
* Separate styling for fixed rows/columns from labels
* Highlight fixed rows/cols affected by colour differently
* Tweaking styles for fixed data in DataTable
* Update DataTable snapshots
* Add row label to Row metadata
* Wiring up some labelled row logic behind flags
* Renaming variable in DataTable
* Variable renaming in DataTable
* [no ci] Labelling rows progress
* Add RenderedRow abstraction to DataTable
* Computing label widths
* Use the Column object to represent row label column
* Ability to toggle row labels reactively
* Adjust width calculation for label widths
* Add DataTable.RowLabelSelected
* Posting the RowLabelClick message
* Hovering of row labels applies new style
* Remove a print
* Ensure horizontal scrolling with column cursor accounts for row label column
* Account for possible row labels in cell cursor horizontal scrolling
* Ensure cursor highlighting is correct on row label cells
* Document component class for DataTable label hover
* Test to ensure clicking row label emits correct event
* Add snapshot test for DataTable with fixed rows/cols and row labels
* Using pilot pause instead of wait_for_idle directly
* Update CHANGELOG
* Add a docstring
* Add a note to CHANGELOG.md about RowLabelSelected
A new form of Checkbox will be arriving in Textual soon, working in
conjunction with a RadioButton. What was called Checkbox is perhaps a wee
bit heavyweight in terms of visual design, but is a style of widget that
should remain.
With this in mind we're renaming the current Checkbox to Switch. In all
other respects its workings remains the same, only the name has changed.
Things for people to watch out for:
- Imports will need to be updated.
- Queries will need to be updated; special attention will need to be paid to
any queries that are string-based.
- CSS will need to be changed if any Checkbox styling is happening, or if
any Checkbox component styles are being used.
See #1725 as the initial motivation and #1746 as the issue for this
particular change.