feat!: Update colors of package and php modules (#782)

This commit is contained in:
Matan Kushner 2020-02-01 18:10:12 -05:00 committed by GitHub
parent 9229a48bc9
commit 11b737bb44
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 4 additions and 4 deletions

View File

@ -14,7 +14,7 @@ impl<'a> RootModuleConfig<'a> for PackageConfig<'a> {
fn new() -> Self {
PackageConfig {
symbol: SegmentConfig::new("📦 "),
style: Color::Red.bold(),
style: Color::Fixed(208).bold(),
disabled: false,
}
}

View File

@ -14,7 +14,7 @@ impl<'a> RootModuleConfig<'a> for PhpConfig<'a> {
fn new() -> Self {
PhpConfig {
symbol: SegmentConfig::new("🐘 "),
style: Color::Red.bold(),
style: Color::Fixed(147).bold(),
disabled: false,
}
}

View File

@ -33,7 +33,7 @@ fn folder_with_composer_file() -> io::Result<()> {
.output()?;
let actual = String::from_utf8(output.stdout).unwrap();
let expected = format!("via {} ", Color::Red.bold().paint("🐘 v7.3.8"));
let expected = format!("via {} ", Color::Fixed(147).bold().paint("🐘 v7.3.8"));
assert_eq!(expected, actual);
Ok(())
}
@ -50,7 +50,7 @@ fn folder_with_php_file() -> io::Result<()> {
.output()?;
let actual = String::from_utf8(output.stdout).unwrap();
let expected = format!("via {} ", Color::Red.bold().paint("🐘 v7.3.8"));
let expected = format!("via {} ", Color::Fixed(147).bold().paint("🐘 v7.3.8"));
assert_eq!(expected, actual);
Ok(())
}