Add From<Cow<str>> implementation for text::Text (#471).
Add option to right or center align the title of a widgets::Block (#462).
Fixes
Apply label style in widgets::Gauge and avoid panics because of overflows with long labels (#494).
Avoid panics because of overflows with long axis labels in widgets::Chart (#512).
Fix computation of column widths in widgets::Table (#514).
Fix panics because of invalid offset when input changes between two frames in widgets::List and
widgets::Chart (#516).
v0.15.0 - 2021-05-02
Features
Update crossterm to 0.19.
Update rand to 0.8.
Add a read-only view of the terminal state after the draw call (#440).
Fixes
Remove compile warning in TestBackend::assert_buffer (#466).
v0.14.0 - 2021-01-01
Breaking changes
New API for the Table widget
The Table widget got a lot of improvements that should make it easier to work with:
It should not longer panic when rendered on small areas.
Rows are now a collection of Cells, themselves wrapping a Text. This means you can style
the entire Table, an entire Row, an entire Cell and rely on the styling capabilities of
Text to get full control over the look of your Table.
Rows can have multiple lines.
The header is now optional and is just another Row always visible at the top.
Rows can have a bottom margin.
The header alignment is no longer off when an item is selected.
Taking the example of the code in examples/demo/ui.rs, this is what you may have to change:
let failure_style = Style::default()
.fg(Color::Red)
.add_modifier(Modifier::RAPID_BLINK | Modifier::CROSSED_OUT);
- let header = ["Server", "Location", "Status"];
</tr></table>
Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.
Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR:
- `@dependabot rebase` will rebase this PR
- `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it
- `@dependabot merge` will merge this PR after your CI passes on it
- `@dependabot squash and merge` will squash and merge this PR after your CI passes on it
- `@dependabot cancel merge` will cancel a previously requested merge and block automerging
- `@dependabot reopen` will reopen this PR if it is closed
- `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
- `@dependabot ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
- `@dependabot ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
- `@dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)
Updates the requirements on tui to permit the latest version.
Release notes
Sourced from tui's releases.
Changelog
Sourced from tui's changelog.
... (truncated)
Commits
7870793
Release v0.16.0a7c21a9
fix(widgets): avoid offset panic inTable
andList
when input changes914d54e
chore: bump crossterm to 0.20a68e38e
fix(table): useLayout
in table column widths computatione870e5d
feat(layout): add private option to control last chunk expansion29387e7
Add battleship.rs8eb6336
refactor(widgets): remove iter::repeat for blank symbols34a2be6
fix(widgets/chart): remove panics with long axis labelsfbd8344
doc(widgets/clear): clarify usage of clear8da5f74
refactor(examples): show more use case in gauge exampleDependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting
@dependabot rebase
.Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR: - `@dependabot rebase` will rebase this PR - `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it - `@dependabot merge` will merge this PR after your CI passes on it - `@dependabot squash and merge` will squash and merge this PR after your CI passes on it - `@dependabot cancel merge` will cancel a previously requested merge and block automerging - `@dependabot reopen` will reopen this PR if it is closed - `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually - `@dependabot ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)