mirror of
https://github.com/ratatui-org/ratatui
synced 2024-11-22 12:43:16 +00:00
docs(breaking-changes): mention LineGauge::gauge_style
(#1194)
see #565
This commit is contained in:
parent
1908b06b4a
commit
38bb196404
1 changed files with 14 additions and 0 deletions
|
@ -16,6 +16,7 @@ This is a quick summary of the sections below:
|
||||||
- `Buffer::filled` takes `Cell` directly instead of reference
|
- `Buffer::filled` takes `Cell` directly instead of reference
|
||||||
- `Stylize::bg()` now accepts `Into<Color>`
|
- `Stylize::bg()` now accepts `Into<Color>`
|
||||||
- Removed deprecated `List::start_corner`
|
- Removed deprecated `List::start_corner`
|
||||||
|
- `LineGauge::gauge_style` is deprecated
|
||||||
- [v0.26.0](#v0260)
|
- [v0.26.0](#v0260)
|
||||||
- `Flex::Start` is the new default flex mode for `Layout`
|
- `Flex::Start` is the new default flex mode for `Layout`
|
||||||
- `patch_style` & `reset_style` now consume and return `Self`
|
- `patch_style` & `reset_style` now consume and return `Self`
|
||||||
|
@ -167,6 +168,19 @@ flexible types from calling scopes, though it can break some type inference in t
|
||||||
|
|
||||||
`layout::Corner` was removed entirely.
|
`layout::Corner` was removed entirely.
|
||||||
|
|
||||||
|
### `LineGauge::gauge_style` is deprecated ([#565])
|
||||||
|
|
||||||
|
[#565]: https://github.com/ratatui-org/ratatui/pull/1148
|
||||||
|
|
||||||
|
`LineGauge::gauge_style` is deprecated and replaced with `LineGauge::filled_style` and `LineGauge::unfilled_style`:
|
||||||
|
|
||||||
|
```diff
|
||||||
|
let gauge = LineGauge::default()
|
||||||
|
- .gauge_style(Style::default().fg(Color::Red).bg(Color::Blue)
|
||||||
|
+ .filled_style(Style::default().fg(Color::Green))
|
||||||
|
+ .unfilled_style(Style::default().fg(Color::White));
|
||||||
|
```
|
||||||
|
|
||||||
## [v0.26.0](https://github.com/ratatui-org/ratatui/releases/tag/v0.26.0)
|
## [v0.26.0](https://github.com/ratatui-org/ratatui/releases/tag/v0.26.0)
|
||||||
|
|
||||||
### `Flex::Start` is the new default flex mode for `Layout` ([#881])
|
### `Flex::Start` is the new default flex mode for `Layout` ([#881])
|
||||||
|
|
Loading…
Reference in a new issue