Selected file has now colourful background, instead of foreground, for a better readability

This commit is contained in:
ChristianVisintin
2020-12-13 09:55:16 +01:00
parent f06f718b47
commit 2a8ad5e0ed
2 changed files with 6 additions and 3 deletions

View File

@@ -16,7 +16,8 @@ Released on 13/12/2020
- Possibility to abort file transfers - Possibility to abort file transfers
- Enhancements: - Enhancements:
- File explorer: - File explorer:
- when file index is at the end of the list, moving down will set the current index to the first element and viceversa. - When file index is at the end of the list, moving down will set the current index to the first element and viceversa.
- Selected file has now colourful background, instead of foreground, for a better readability.
- Keybindings: - Keybindings:
- `E`: Delete file (Same as `DEL`); added because some keyboards don't have `DEL` (hey, that's my MacBook Air's keyboard!) - `E`: Delete file (Same as `DEL`); added because some keyboards don't have `DEL` (hey, that's my MacBook Air's keyboard!)
- `Ctrl+C`: Abort transfer process - `Ctrl+C`: Abort transfer process

View File

@@ -191,7 +191,8 @@ impl FileTransferActivity {
.start_corner(Corner::TopLeft) .start_corner(Corner::TopLeft)
.highlight_style( .highlight_style(
Style::default() Style::default()
.fg(Color::Yellow) .fg(Color::Black)
.bg(Color::LightYellow)
.add_modifier(Modifier::BOLD), .add_modifier(Modifier::BOLD),
) )
} }
@@ -231,7 +232,8 @@ impl FileTransferActivity {
.start_corner(Corner::TopLeft) .start_corner(Corner::TopLeft)
.highlight_style( .highlight_style(
Style::default() Style::default()
.fg(Color::LightBlue) .bg(Color::LightBlue)
.fg(Color::Black)
.add_modifier(Modifier::BOLD), .add_modifier(Modifier::BOLD),
) )
} }