summaryrefslogtreecommitdiffstats
path: root/src/interactive/widgets/mark.rs
diff options
context:
space:
mode:
authorSebastian Thiel <sthiel@thoughtworks.com>2019-06-08 05:30:52 +0530
committerSebastian Thiel <sthiel@thoughtworks.com>2019-06-08 05:30:52 +0530
commit7ad2130bada27098e2d24f06650873a53b159f87 (patch)
tree409a6a7fbff11aca960107fd0bf7d59546a1c437 /src/interactive/widgets/mark.rs
parent49edb7654ce3380bcde28630645af3740cf1a07a (diff)
Pune/India: Nicer colors for warn window in selection
Diffstat (limited to 'src/interactive/widgets/mark.rs')
-rw-r--r--src/interactive/widgets/mark.rs18
1 files changed, 8 insertions, 10 deletions
diff --git a/src/interactive/widgets/mark.rs b/src/interactive/widgets/mark.rs
index f73d993..61b06f0 100644
--- a/src/interactive/widgets/mark.rs
+++ b/src/interactive/widgets/mark.rs
@@ -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,
@@ -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()
)
@@ -252,7 +253,7 @@ impl MarkPane {
let default_style = Style {
fg: Color::Black,
- bg: Color::White,
+ bg: Color::Yellow,
modifier: Modifier::BOLD,
..Default::default()
};
@@ -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
},
@@ -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 {