docs(breaking-changes): mention LineGauge::gauge_style (#1194)

see #565
This commit is contained in:
Orhun Parmaksız 2024-06-24 11:27:22 +03:00 committed by GitHub
parent 1908b06b4a
commit 38bb196404
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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])