From 28f8c82ccf103a509696fb0cee704bd8c29d021b Mon Sep 17 00:00:00 2001 From: veeso Date: Sun, 14 Mar 2021 20:55:25 +0100 Subject: [PATCH] Fixed styles not properly being rendered on text --- src/ui/layout/components/text.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/ui/layout/components/text.rs b/src/ui/layout/components/text.rs index 21dc007..16d9f60 100644 --- a/src/ui/layout/components/text.rs +++ b/src/ui/layout/components/text.rs @@ -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); }