Skip to content

Commit 38bb196

Browse files
authored
docs(breaking-changes): mention LineGauge::gauge_style (#1194)
see #565
1 parent 1908b06 commit 38bb196

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

BREAKING-CHANGES.md

+14
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ This is a quick summary of the sections below:
1616
- `Buffer::filled` takes `Cell` directly instead of reference
1717
- `Stylize::bg()` now accepts `Into<Color>`
1818
- Removed deprecated `List::start_corner`
19+
- `LineGauge::gauge_style` is deprecated
1920
- [v0.26.0](#v0260)
2021
- `Flex::Start` is the new default flex mode for `Layout`
2122
- `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
167168

168169
`layout::Corner` was removed entirely.
169170

171+
### `LineGauge::gauge_style` is deprecated ([#565])
172+
173+
[#565]: https://github.com/ratatui-org/ratatui/pull/1148
174+
175+
`LineGauge::gauge_style` is deprecated and replaced with `LineGauge::filled_style` and `LineGauge::unfilled_style`:
176+
177+
```diff
178+
let gauge = LineGauge::default()
179+
- .gauge_style(Style::default().fg(Color::Red).bg(Color::Blue)
180+
+ .filled_style(Style::default().fg(Color::Green))
181+
+ .unfilled_style(Style::default().fg(Color::White));
182+
```
183+
170184
## [v0.26.0](https://github.com/ratatui-org/ratatui/releases/tag/v0.26.0)
171185

172186
### `Flex::Start` is the new default flex mode for `Layout` ([#881])

0 commit comments

Comments
 (0)