mirror of
https://github.com/veeso/termscp.git
synced 2025-12-07 09:36:00 -08:00
Fixed styles not properly being rendered on text
This commit is contained in:
@@ -93,9 +93,9 @@ impl Component for Text {
|
|||||||
// Apply style
|
// Apply style
|
||||||
text.patch_style(
|
text.patch_style(
|
||||||
Style::default()
|
Style::default()
|
||||||
.add_modifier(self.props.get_modifiers())
|
//.add_modifier(self.props.get_modifiers())
|
||||||
.fg(self.props.foreground)
|
//.fg(self.props.foreground) NOTE: don't style twice !!!
|
||||||
.bg(self.props.background),
|
//.bg(self.props.background),
|
||||||
);
|
);
|
||||||
render.render_widget(Paragraph::new(text), area);
|
render.render_widget(Paragraph::new(text), area);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user