From 4a7eb831b85c521c852fd2acf16d3a6883d066aa Mon Sep 17 00:00:00 2001 From: veeso Date: Sun, 14 Mar 2021 17:09:05 +0100 Subject: [PATCH] Fixed radio colors --- src/ui/layout/components/radio_group.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/ui/layout/components/radio_group.rs b/src/ui/layout/components/radio_group.rs index 23a1e90..79670a0 100644 --- a/src/ui/layout/components/radio_group.rs +++ b/src/ui/layout/components/radio_group.rs @@ -127,7 +127,7 @@ impl Component for RadioGroup { .map(|x| Spans::from(x.clone())) .collect(); // Make colors - let (bg, fg, block_fg): (Color, Color, Color) = match &self.states.focus { + let (bg, fg, block_color): (Color, Color, Color) = match &self.states.focus { true => ( self.props.foreground, self.props.background, @@ -145,11 +145,11 @@ impl Component for RadioGroup { Block::default() .borders(Borders::ALL) .border_type(BorderType::Rounded) - .style(Style::default().fg(block_fg)) + .style(Style::default()) .title(title), ) .select(self.states.choice) - .style(Style::default()) + .style(Style::default().fg(block_color)) .highlight_style( Style::default() .add_modifier(self.props.get_modifiers())