chore(deps): bump tui from 0.13.0 to 0.15.0
Bumps tui from 0.13.0 to 0.15.0.
Release notes
Sourced from tui's releases.
v0.15.0
Features
- Update
crosstermto0.19.- Update
randto0.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
Breaking changes
New API for the Table widget
The
Tablewidget 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 ofCells, themselves wrapping aText. This means you can style the entireTable, an entireRow, an entireCelland rely on the styling capabilities ofTextto get full control over the look of yourTable.Rows can have multiple lines.- The header is now optional and is just another
Rowalways 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"]; let rows = app.servers.iter().map(|s| { let style = if s.status == "Up" { up_style } else { failure_style }; - Row::StyledData(vec![s.name, s.location, s.status].into_iter(), style) + Row::new(vec![s.name, s.location, s.status]).style(style) }); - let table = Table::new(header.iter(), rows) + let table = Table::new(rows) + .header( + Row::new(vec!["Server", "Location", "Status"]) + .style(Style::default().fg(Color::Yellow)) + .bottom_margin(1), + ) .block(Block::default().title("Servers").borders(Borders::ALL)) - .header_style(Style::default().fg(Color::Yellow)) </tr></table>
... (truncated)
Changelog
Sourced from tui's changelog.
v0.15.0 - 2021-05-02
Features
- Update
crosstermto0.19.- Update
randto0.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
Tablewidget 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 ofCells, themselves wrapping aText. This means you can style the entireTable, an entireRow, an entireCelland rely on the styling capabilities ofTextto get full control over the look of yourTable.Rows can have multiple lines.- The header is now optional and is just another
Rowalways 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"]; let rows = app.servers.iter().map(|s| { let style = if s.status == "Up" { up_style } else { failure_style }; - Row::StyledData(vec![s.name, s.location, s.status].into_iter(), style) + Row::new(vec![s.name, s.location, s.status]).style(style) }); - let table = Table::new(header.iter(), rows) + let table = Table::new(rows) + .header( + Row::new(vec!["Server", "Location", "Status"]) + .style(Style::default().fg(Color::Yellow)) + .bottom_margin(1), + ) </tr></table>
... (truncated)
Commits
90a6a8fRelease v0.15.0414386echore: updaterandto 0.8 (#472)3a843d5fix(test): remove compile warning in TestBackend::assert_buffer (#466)4e76bfachore: add Vector to list of apps using tui (#452)8832281Update crossterm to 0.19.853f3d9feat(terminal): add a read-only view of the terminal state after the draw call67e996cfeat(examples): add third tab to demo to show colorsf09863fRelease v0.14.0eb1e3befix(widgets/block): make Block::inner return more accurate results on small a...4ec902bchore: make run-examples available on all platforms (#429)- Additional commits viewable in compare view
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 rebasewill rebase this PR -
@dependabot recreatewill recreate this PR, overwriting any edits that have been made to it -
@dependabot mergewill merge this PR after your CI passes on it -
@dependabot squash and mergewill squash and merge this PR after your CI passes on it -
@dependabot cancel mergewill cancel a previously requested merge and block automerging -
@dependabot reopenwill reopen this PR if it is closed -
@dependabot closewill close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually -
@dependabot ignore this major versionwill 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 versionwill 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 dependencywill close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself) -
@dependabot use these labelswill set the current labels as the default for future PRs for this repo and language -
@dependabot use these reviewerswill set the current reviewers as the default for future PRs for this repo and language -
@dependabot use these assigneeswill set the current assignees as the default for future PRs for this repo and language -
@dependabot use this milestonewill set the current milestone as the default for future PRs for this repo and language -
@dependabot badge mewill comment on this PR with code to add a "Dependabot enabled" badge to your readme
Additionally, you can set the following in your Dependabot dashboard:
- Update frequency (including time of day and day of week)
- Pull request limits (per update run and/or open at any time)
- Out-of-range updates (receive only lockfile updates, if desired)
- Security updates (receive only security updates, if desired)