mirror of
https://github.com/nushell/nushell
synced 2024-12-27 21:43:09 +00:00
chart tweaks for windows (#2626)
This commit is contained in:
parent
e4c6336bd4
commit
f0b7ab5ecc
1 changed files with 2 additions and 1 deletions
|
@ -123,7 +123,7 @@ impl<'a> BarChart<'a> {
|
||||||
ui.draw(|f| {
|
ui.draw(|f| {
|
||||||
let chunks = Layout::default()
|
let chunks = Layout::default()
|
||||||
.direction(Direction::Vertical)
|
.direction(Direction::Vertical)
|
||||||
.margin(2)
|
.margin(0)
|
||||||
.constraints([Constraint::Percentage(100)].as_ref())
|
.constraints([Constraint::Percentage(100)].as_ref())
|
||||||
.split(f.size());
|
.split(f.size());
|
||||||
|
|
||||||
|
@ -134,6 +134,7 @@ impl<'a> BarChart<'a> {
|
||||||
.bar_style(Style::default().fg(Color::Green))
|
.bar_style(Style::default().fg(Color::Green))
|
||||||
.value_style(
|
.value_style(
|
||||||
Style::default()
|
Style::default()
|
||||||
|
.fg(Color::Black)
|
||||||
.bg(Color::Green)
|
.bg(Color::Green)
|
||||||
.add_modifier(Modifier::BOLD),
|
.add_modifier(Modifier::BOLD),
|
||||||
);
|
);
|
||||||
|
|
Loading…
Reference in a new issue