diff options
author | Mick Hohmann <gh@m69.im.net> | 2023-05-10 14:36:56 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-05-10 14:36:56 +0200 |
commit | 2558c4588b5bcc404df474c948de0b72b109be01 (patch) | |
tree | 06c004e40376d9715b98150fd604d6d41fd219cb /src/modules | |
parent | 6625bd8feaa3fea53e683c1c26cf942345d3198f (diff) |
fix: update of presets and default configuration to reflect changes in Nerd Fonts 3.0 (#5162)
* Updated nf-mdi-* to nf-md-* symbols
The following symbols where changed
- directory.read_only
- memory_usage
- meson
- nim
- os.symbols.Garuda
- os.symbols.HardenedBSD
- os.symbols.Illumos
- os.symbols.OpenBSD
- os.symbols.OracleLinux
- os.symbols.Redox
- os.symbols.Solus
- os.symbols.Windows
- package
- rlang
* Updated nf-mdi-* to nf-md-* symbols (for all other presets)
The following symbols where changed
for pastel-powerline:
- directory.substitutions.Documents
- nim
for tokyo-night
- directory.substitutions.Documents
- golang
* Updated nf-mdi-* to nf-md-* symbols for the default configuration in modules in src/configs/*.rs
The following symbols where changed
- azure
- battery.full_symbol
- battery.charging_symbol
- battery.discharging_symbol
- battery.unknown_symbol
- battery.empty_symbol
* Updated config-schema.json
* Updated src/modules/*.rs docs/config/README.md
and used `nerdfix` to check if I overlook anything
* Fixed the battery discharging symbol in the tests
---------
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: jtrv <travershasemail@gmail.com>
Diffstat (limited to 'src/modules')
-rw-r--r-- | src/modules/azure.rs | 12 | ||||
-rw-r--r-- | src/modules/battery.rs | 14 | ||||
-rw-r--r-- | src/modules/os.rs | 32 |
3 files changed, 29 insertions, 29 deletions
diff --git a/src/modules/azure.rs b/src/modules/azure.rs index da81beb77..745ceeda9 100644 --- a/src/modules/azure.rs +++ b/src/modules/azure.rs @@ -196,7 +196,7 @@ mod tests { .collect(); let expected = Some(format!( "on {} ", - Color::Blue.bold().paint("ﴃ Subscription 1") + Color::Blue.bold().paint(" Subscription 1") )); assert_eq!(actual, expected); dir.close() @@ -267,7 +267,7 @@ mod tests { .collect(); let expected = Some(format!( "on {}", - Color::Blue.bold().paint("ﴃ user@domain.com") + Color::Blue.bold().paint(" user@domain.com") )); assert_eq!(actual, expected); dir.close() @@ -338,7 +338,7 @@ mod tests { .collect(); let expected = Some(format!( "on {}", - Color::Blue.bold().paint("ﴃ :user@domain.com") + Color::Blue.bold().paint(" :user@domain.com") )); assert_eq!(actual, expected); dir.close() @@ -409,7 +409,7 @@ mod tests { .collect(); let expected = Some(format!( "on {}", - Color::Blue.bold().paint("ﴃ Subscription 1:") + Color::Blue.bold().paint(" Subscription 1:") )); assert_eq!(actual, expected); dir.close() @@ -614,7 +614,7 @@ mod tests { .collect(); let expected = Some(format!( "on {}", - Color::Blue.bold().paint("ﴃ Subscription 1:user@domain.com") + Color::Blue.bold().paint(" Subscription 1:user@domain.com") )); assert_eq!(actual, expected); dir.close() @@ -689,7 +689,7 @@ mod tests { .collect(); let expected = Some(format!( "on {}", - Color::Blue.bold().paint("ﴃ tllsn:user@domain.com") + Color::Blue.bold().paint(" tllsn:user@domain.com") )); assert_eq!(actual, expected); dir.close() diff --git a/src/modules/battery.rs b/src/modules/battery.rs index 0ccad6a40..eca75a4e2 100644 --- a/src/modules/battery.rs +++ b/src/modules/battery.rs @@ -234,7 +234,7 @@ mod tests { }) .battery_info_provider(&mock) .collect(); - let expected = Some(String::from(" 100% ")); + let expected = Some(String::from(" 100% ")); assert_eq!(expected, actual); } @@ -259,7 +259,7 @@ mod tests { }) .battery_info_provider(&mock) .collect(); - let expected = Some(String::from(" 80% ")); + let expected = Some(String::from(" 80% ")); assert_eq!(expected, actual); } @@ -284,7 +284,7 @@ mod tests { }) .battery_info_provider(&mock) .collect(); - let expected = Some(String::from(" 80% ")); + let expected = Some(String::from(" 80% ")); assert_eq!(expected, actual); } @@ -309,7 +309,7 @@ mod tests { }) .battery_info_provider(&mock) .collect(); - let expected = Some(String::from(" 0% ")); + let expected = Some(String::from(" 0% ")); assert_eq!(expected, actual); } @@ -334,7 +334,7 @@ mod tests { }) .battery_info_provider(&mock) .collect(); - let expected = Some(String::from(" 0% ")); + let expected = Some(String::from(" 0% ")); assert_eq!(expected, actual); } @@ -384,7 +384,7 @@ mod tests { }) .battery_info_provider(&mock) .collect(); - let expected = Some(format!("{} ", Color::Red.bold().paint(" 40%"))); + let expected = Some(format!("{} ", Color::Red.bold().paint(" 40%"))); assert_eq!(expected, actual); } @@ -409,7 +409,7 @@ mod tests { }) .battery_info_provider(&mock) .collect(); - let expected = Some(String::from(" 13% ")); + let expected = Some(String::from(" 13% ")); assert_eq!(expected, actual); } diff --git a/src/modules/os.rs b/src/modules/os.rs index 28d1dc070..cbc9d1e03 100644 --- a/src/modules/os.rs +++ b/src/modules/os.rs @@ -189,10 +189,10 @@ mod tests { EndeavourOS = " " Fedora = " " FreeBSD = " " - Garuda = " " + Garuda = " " Gentoo = " " - HardenedBSD = "ﲊ " - Illumos = " " + HardenedBSD = " " + Illumos = " " Linux = " " Macos = " " Manjaro = " " @@ -201,19 +201,19 @@ mod tests { Mint = " " NetBSD = " " NixOS = " " - OpenBSD = " " + OpenBSD = " " SUSE = " " - OracleLinux = " " + OracleLinux = " " Pop = " " Raspbian = " " Redhat = " " RedHatEnterprise = " " - Redox = " " - Solus = "ﴱ " + Redox = " " + Solus = " " openSUSE = " " Ubuntu = " " Unknown = " " - Windows = " " + Windows = " " }; let config = OSConfig::load(&config_toml); @@ -230,10 +230,10 @@ mod tests { (Type::EndeavourOS, Some(" ")), (Type::Fedora, Some(" ")), (Type::FreeBSD, Some(" ")), - (Type::Garuda, Some(" ")), + (Type::Garuda, Some(" ")), (Type::Gentoo, Some(" ")), - (Type::HardenedBSD, Some("ﲊ ")), - (Type::Illumos, Some(" ")), + (Type::HardenedBSD, Some(" ")), + (Type::Illumos, Some(" ")), (Type::Linux, Some(" ")), (Type::Macos, Some(" ")), (Type::Manjaro, Some(" ")), @@ -242,19 +242,19 @@ mod tests { (Type::Mint, Some(" ")), (Type::NetBSD, Some(" ")), (Type::NixOS, Some(" ")), - (Type::OpenBSD, Some(" ")), + (Type::OpenBSD, Some(" ")), (Type::SUSE, Some(" ")), - (Type::OracleLinux, Some(" ")), + (Type::OracleLinux, Some(" ")), (Type::Pop, Some(" ")), (Type::Raspbian, Some(" ")), (Type::Redhat, Some(" ")), (Type::RedHatEnterprise, Some(" ")), - (Type::Redox, Some(" ")), - (Type::Solus, Some("ﴱ ")), + (Type::Redox, Some(" ")), + (Type::Solus, Some(" ")), (Type::openSUSE, Some(" ")), (Type::Ubuntu, Some(" ")), (Type::Unknown, Some(" ")), - (Type::Windows, Some(" ")), + (Type::Windows, Some(" ")), ]; for (t, e) in type_expected_pairs { |