Skip to content

Commit d35077a

Browse files
committed
fix fg color
1 parent b70c2a1 commit d35077a

File tree

1 file changed

+11
-11
lines changed

1 file changed

+11
-11
lines changed

src/adapter.rs

+11-11
Original file line numberDiff line numberDiff line change
@@ -202,7 +202,7 @@ impl Adapter {
202202
ColorMode::Light => Style::default().fg(Color::Black),
203203
})
204204
.row_highlight_style(if focused_block == FocusedBlock::Device {
205-
Style::default().bg(Color::DarkGray)
205+
Style::default().bg(Color::DarkGray).fg(Color::White)
206206
} else {
207207
Style::default()
208208
});
@@ -368,7 +368,7 @@ impl Adapter {
368368
ColorMode::Light => Style::default().fg(Color::Black),
369369
})
370370
.row_highlight_style(if focused_block == FocusedBlock::AccessPoint {
371-
Style::default().bg(Color::DarkGray)
371+
Style::default().bg(Color::DarkGray).fg(Color::White)
372372
} else {
373373
Style::default()
374374
});
@@ -437,10 +437,10 @@ impl Adapter {
437437
let chunks = Layout::default()
438438
.direction(Direction::Vertical)
439439
.constraints([
440-
Constraint::Percentage(16),
441-
Constraint::Percentage(16),
442-
Constraint::Percentage(33),
443-
Constraint::Percentage(34),
440+
Constraint::Length(5),
441+
Constraint::Length(5),
442+
Constraint::Min(10),
443+
Constraint::Fill(1),
444444
])
445445
.margin(1)
446446
.split(frame.area());
@@ -544,7 +544,7 @@ impl Adapter {
544544
ColorMode::Light => Style::default().fg(Color::Black),
545545
})
546546
.row_highlight_style(if focused_block == FocusedBlock::Device {
547-
Style::default().bg(Color::DarkGray)
547+
Style::default().bg(Color::DarkGray).fg(Color::White)
548548
} else {
549549
Style::default()
550550
});
@@ -690,7 +690,7 @@ impl Adapter {
690690
ColorMode::Light => Style::default().fg(Color::Black),
691691
})
692692
.row_highlight_style(if focused_block == FocusedBlock::Station {
693-
Style::default().bg(Color::DarkGray)
693+
Style::default().bg(Color::DarkGray).fg(Color::White)
694694
} else {
695695
Style::default()
696696
});
@@ -852,7 +852,7 @@ impl Adapter {
852852
ColorMode::Light => Style::default().fg(Color::Black),
853853
})
854854
.row_highlight_style(if focused_block == FocusedBlock::KnownNetworks {
855-
Style::default().bg(Color::DarkGray)
855+
Style::default().bg(Color::DarkGray).fg(Color::White)
856856
} else {
857857
Style::default()
858858
});
@@ -977,7 +977,7 @@ impl Adapter {
977977
ColorMode::Light => Style::default().fg(Color::Black),
978978
})
979979
.row_highlight_style(if focused_block == FocusedBlock::NewNetworks {
980-
Style::default().bg(Color::DarkGray)
980+
Style::default().bg(Color::DarkGray).fg(Color::White)
981981
} else {
982982
Style::default()
983983
});
@@ -1062,7 +1062,7 @@ impl Adapter {
10621062
ColorMode::Dark => Style::default().fg(Color::White),
10631063
ColorMode::Light => Style::default().fg(Color::Black),
10641064
})
1065-
.row_highlight_style(Style::default().bg(Color::DarkGray));
1065+
.row_highlight_style(Style::default().bg(Color::DarkGray).fg(Color::White));
10661066

10671067
frame.render_widget(Clear, area);
10681068
frame.render_widget(device_infos_table, area);

0 commit comments

Comments
 (0)