Skip to content

Commit c907a56

Browse files
committed
change dimmed to light_black
Currently when using the colored crate in the vscode terminal on windows 10 .dimmed() doesn't change the color. .light_black() is very close to the same color and work in the vscode terminal on windows 10, it also works correctly in the new Windows Terminal, but dimmed also worked there.
1 parent 6f95ede commit c907a56

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/utils.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -79,13 +79,13 @@ impl fmt::Display for Line {
7979
.map(|duration| format!(" ({:.2?})", duration))
8080
.unwrap_or_else(String::new);
8181

82-
write!(f, "{}{}", self.text, duration.dimmed())?;
82+
write!(f, "{}{}", self.text, duration.bright_black())?;
8383

8484
if let Some(state) = &self.state {
8585
let width = self.text.chars().count() + 1 + duration.chars().count();
8686
let dots = display_width - min(display_width - 5, width) - 2;
8787
let dots: String = iter::repeat('.').take(dots).collect();
88-
write!(f, " {}", dots.dimmed())?;
88+
write!(f, " {}", dots.bright_black())?;
8989

9090
if state.contains('\n') {
9191
for line in state.trim_matches('\n').lines() {

0 commit comments

Comments
 (0)