Borders to component properties

This commit is contained in:
veeso
2021-03-14 20:48:30 +01:00
parent 47c23c6828
commit a72ecb39e0
7 changed files with 14 additions and 14 deletions

View File

@@ -29,7 +29,7 @@ use super::{Canvas, Component, InputEvent, Msg, Payload, PropValue, Props, Props
use tui::{
layout::Rect,
style::Style,
widgets::{Block, Borders, Gauge},
widgets::{Block, Gauge},
};
// -- state
@@ -92,7 +92,7 @@ impl Component for ProgressBar {
// Make progress bar
render.render_widget(
Gauge::default()
.block(Block::default().borders(Borders::ALL).title(title))
.block(Block::default().borders(self.props.borders).title(title))
.gauge_style(
Style::default()
.fg(self.props.foreground)