Skip to content

Commit

Permalink
Pune/India: Nicer colors for warn window in selection
Browse files Browse the repository at this point in the history
  • Loading branch information
Sebastian Thiel committed Jun 8, 2019
1 parent 49edb76 commit 7ad2130
Showing 1 changed file with 8 additions and 10 deletions.
18 changes: 8 additions & 10 deletions src/interactive/widgets/mark.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
use crate::{
interactive::widgets::{COLOR_BYTESIZE_SELECTED, COLOR_MARKED_LIGHT},
interactive::{fit_string_graphemes_with_ellipsis, CursorDirection},
use crate::interactive::{
fit_string_graphemes_with_ellipsis,
widgets::{COLOR_BYTESIZE_SELECTED, COLOR_MARKED_LIGHT},
CursorDirection,
};
use dua::{
path_of,
Expand Down Expand Up @@ -185,7 +186,7 @@ impl MarkPane {
);
let bytes = Text::Styled(
format!(
"{:>byte_column_width$}",
"{:>byte_column_width$} ",
format.display(v.size).to_string(), // we would have to impl alignment/padding ourselves otherwise...
byte_column_width = format.width()
)
Expand Down Expand Up @@ -252,7 +253,7 @@ impl MarkPane {

let default_style = Style {
fg: Color::Black,
bg: Color::White,
bg: Color::Yellow,
modifier: Modifier::BOLD,
..Default::default()
};
Expand All @@ -261,7 +262,7 @@ impl MarkPane {
Text::Styled(
" Ctrl + Shift + r".into(),
Style {
fg: Color::Red,
fg: Color::LightRed,
modifier: default_style.modifier | Modifier::RAPID_BLINK,
..default_style
},
Expand All @@ -273,10 +274,7 @@ impl MarkPane {
]
.iter(),
)
.style(Style {
bg: Color::White,
..Style::default()
})
.style(default_style)
.draw(help_line_area, buf);
list_area
} else {
Expand Down

0 comments on commit 7ad2130

Please sign in to comment.