mirror of
https://github.com/starship/starship.git
synced 2024-12-23 23:58:51 +01:00
feat!: Update colors of package and php modules (#782)
This commit is contained in:
parent
9229a48bc9
commit
11b737bb44
@ -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,
|
||||
}
|
||||
}
|
||||
|
@ -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,
|
||||
}
|
||||
}
|
||||
|
@ -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(())
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user