@@ -11,7 +11,7 @@ github with a [breaking change] label.
11
11
This is a quick summary of the sections below:
12
12
13
13
- Unreleased (0.24.1)
14
- - ` List::start_corner ` is renamed to ` List::direction `
14
+ - Removed ` Axis::title_style ` and ` Buffer::set_background `
15
15
- ` List::new() ` now accepts ` IntoIterator<Item = Into<ListItem<'a>>> `
16
16
- ` Table::new() ` now requires specifying the widths
17
17
- ` Table::widths() ` now accepts ` IntoIterator<Item = AsRef<Constraint>> `
@@ -42,28 +42,17 @@ This is a quick summary of the sections below:
42
42
43
43
## Unreleased (v0.24.1)
44
44
45
- ### ` List::start_corner ` is renamed to ` List::direction ` ( [ # 673 ] )
45
+ ### Removed ` Axis::title_style ` and ` Buffer::set_background `
46
46
47
- [ #673 ] : https://github.com/ratatui-org/ratatui/pull/673
47
+ These items were deprecated since 0.10.
48
48
49
- Previously ` List::start_corner ` didn't communicate the intent of the method. It also used an
50
- inadequate ` Corner ` enum. The method is now renamed ` direction ` and a new enum
51
- ` ListDirection ` has been added.
49
+ - You should use styling capabilities of [ ` text::Line ` ] given as argument of [ ` Axis::title ` ]
50
+ instead of ` Axis::title_style `
51
+ - You should use styling capabilities of [ ` Buffer::set_style ` ] instead of ` Buffer::set_background `
52
52
53
- ``` diff
54
- - List::new(/* items */).start_corner(Corner::TopLeft);
55
- - List::new(/* items */).start_corner(Corner::TopRight);
56
- // This is not an error, BottomRight rendered top to bottom previously
57
- - List::new(/* items */).start_corner(Corner::BottomRight);
58
- // all becomes
59
- + List::new(/* items */).direction(ListDirection::TopToBottom);
60
- ```
61
-
62
- ``` diff
63
- - List::new(/* items */).start_corner(Corner::BottomLeft);
64
- // becomes
65
- + List::new(/* items */).direction(ListDirection::BottomToTop);
66
- ```
53
+ [ `text::Line` ] : https://docs.rs/ratatui/latest/ratatui/text/struct.Line.html
54
+ [ `Axis::title` ] : https://docs.rs/ratatui/latest/ratatui/widgets/struct.Axis.html#method.title
55
+ [ `Buffer::set_style` ] : https://docs.rs/ratatui/latest/ratatui/buffer/struct.Buffer.html#method.set_style
67
56
68
57
### ` List::new() ` now accepts ` IntoIterator<Item = Into<ListItem<'a>>> ` ([ #672 ] )
69
58
0 commit comments