just a little color correction
This commit is contained in:
parent
2153bfef4c
commit
2dcb49dd80
1 changed files with 2 additions and 2 deletions
|
|
@ -157,7 +157,7 @@ impl WindowWidget<'_> {
|
||||||
|
|
||||||
self.list = List::new(prepared_list)
|
self.list = List::new(prepared_list)
|
||||||
.block(block)
|
.block(block)
|
||||||
.highlight_style(Color::Cyan);
|
.highlight_style(Color::Magenta);
|
||||||
}
|
}
|
||||||
|
|
||||||
fn new(prepared_list: Vec<String>) -> Self {
|
fn new(prepared_list: Vec<String>) -> Self {
|
||||||
|
|
@ -246,7 +246,7 @@ impl PreviewWidget<'_> {
|
||||||
|
|
||||||
match fs::read_to_string(absolute_path) {
|
match fs::read_to_string(absolute_path) {
|
||||||
Ok(contents) => {
|
Ok(contents) => {
|
||||||
self.list = List::new(vec![contents]).block(block);
|
self.list = List::new(vec![contents]).block(block).style(Color::Gray);
|
||||||
}
|
}
|
||||||
Err(err) => match err.kind() {
|
Err(err) => match err.kind() {
|
||||||
ErrorKind::FileTooLarge => {}
|
ErrorKind::FileTooLarge => {}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue