From 38bb19640449c7a3eee3a2fba6450071395e5e06 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Orhun=20Parmaks=C4=B1z?= Date: Mon, 24 Jun 2024 11:27:22 +0300 Subject: [PATCH] docs(breaking-changes): mention `LineGauge::gauge_style` (#1194) see #565 --- BREAKING-CHANGES.md | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/BREAKING-CHANGES.md b/BREAKING-CHANGES.md index 586702f1..65874a58 100644 --- a/BREAKING-CHANGES.md +++ b/BREAKING-CHANGES.md @@ -16,6 +16,7 @@ This is a quick summary of the sections below: - `Buffer::filled` takes `Cell` directly instead of reference - `Stylize::bg()` now accepts `Into` - Removed deprecated `List::start_corner` + - `LineGauge::gauge_style` is deprecated - [v0.26.0](#v0260) - `Flex::Start` is the new default flex mode for `Layout` - `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. +### `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) ### `Flex::Start` is the new default flex mode for `Layout` ([#881])