mirror of
https://github.com/ratatui-org/ratatui
synced 2024-11-10 07:04:17 +00:00
Bugfix: title_style was not used to style the axis title
This commit is contained in:
parent
e0083fb8de
commit
bbd4363fa9
1 changed files with 2 additions and 2 deletions
|
@ -360,12 +360,12 @@ where
|
|||
|
||||
if let Some((x, y)) = layout.title_x {
|
||||
let title = self.x_axis.title.unwrap();
|
||||
buf.set_string(x, y, title, self.x_axis.style);
|
||||
buf.set_string(x, y, title, self.x_axis.title_style);
|
||||
}
|
||||
|
||||
if let Some((x, y)) = layout.title_y {
|
||||
let title = self.y_axis.title.unwrap();
|
||||
buf.set_string(x, y, title, self.y_axis.style);
|
||||
buf.set_string(x, y, title, self.y_axis.title_style);
|
||||
}
|
||||
|
||||
if let Some(y) = layout.label_x {
|
||||
|
|
Loading…
Reference in a new issue