mirror of
https://github.com/nushell/nushell.git
synced 2025-01-26 08:08:38 +01:00
chart tweaks for windows (#2626)
This commit is contained in:
parent
e4c6336bd4
commit
f0b7ab5ecc
@ -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 New Issue
Block a user