Fixed styles not properly being rendered on text

This commit is contained in:
veeso
2021-03-14 20:55:25 +01:00
parent 54342178e0
commit 28f8c82ccf

View File

@@ -93,9 +93,9 @@ impl Component for Text {
// Apply style
text.patch_style(
Style::default()
.add_modifier(self.props.get_modifiers())
.fg(self.props.foreground)
.bg(self.props.background),
//.add_modifier(self.props.get_modifiers())
//.fg(self.props.foreground) NOTE: don't style twice !!!
//.bg(self.props.background),
);
render.render_widget(Paragraph::new(text), area);
}