mirror of
https://github.com/veeso/termscp.git
synced 2025-12-07 09:36:00 -08:00
Fixed radio colors
This commit is contained in:
@@ -127,7 +127,7 @@ impl Component for RadioGroup {
|
|||||||
.map(|x| Spans::from(x.clone()))
|
.map(|x| Spans::from(x.clone()))
|
||||||
.collect();
|
.collect();
|
||||||
// Make colors
|
// 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 => (
|
true => (
|
||||||
self.props.foreground,
|
self.props.foreground,
|
||||||
self.props.background,
|
self.props.background,
|
||||||
@@ -145,11 +145,11 @@ impl Component for RadioGroup {
|
|||||||
Block::default()
|
Block::default()
|
||||||
.borders(Borders::ALL)
|
.borders(Borders::ALL)
|
||||||
.border_type(BorderType::Rounded)
|
.border_type(BorderType::Rounded)
|
||||||
.style(Style::default().fg(block_fg))
|
.style(Style::default())
|
||||||
.title(title),
|
.title(title),
|
||||||
)
|
)
|
||||||
.select(self.states.choice)
|
.select(self.states.choice)
|
||||||
.style(Style::default())
|
.style(Style::default().fg(block_color))
|
||||||
.highlight_style(
|
.highlight_style(
|
||||||
Style::default()
|
Style::default()
|
||||||
.add_modifier(self.props.get_modifiers())
|
.add_modifier(self.props.get_modifiers())
|
||||||
|
|||||||
Reference in New Issue
Block a user