From 186d99e623d22fe9e2f7e52378f2ec4015f713d4 Mon Sep 17 00:00:00 2001 From: David Knaack Date: Sat, 15 Oct 2022 14:16:39 +0200 Subject: [PATCH] fix(status): replace multiply with cross mark emoji (#4461) --- .github/config-schema.json | 4 ++-- docs/config/README.md | 2 +- src/configs/status.rs | 2 +- src/modules/status.rs | 8 ++++---- 4 files changed, 8 insertions(+), 8 deletions(-) diff --git a/.github/config-schema.json b/.github/config-schema.json index f1d97cfb..8d43d3be 100644 --- a/.github/config-schema.json +++ b/.github/config-schema.json @@ -1356,7 +1356,7 @@ "signal_symbol": "⚡", "style": "bold red", "success_symbol": "", - "symbol": "✖" + "symbol": "❌" }, "allOf": [ { @@ -4680,7 +4680,7 @@ "type": "string" }, "symbol": { - "default": "✖", + "default": "❌", "type": "string" }, "success_symbol": { diff --git a/docs/config/README.md b/docs/config/README.md index 36a08d38..7f345985 100644 --- a/docs/config/README.md +++ b/docs/config/README.md @@ -3437,7 +3437,7 @@ To enable it, set `disabled` to `false` in your configuration file. | Option | Default | Description | | --------------------------- | ----------------------------------------------------------------------------- | --------------------------------------------------------------------- | | `format` | `"[$symbol$status]($style) "` | The format of the module | -| `symbol` | `"✖"` | The symbol displayed on program error | +| `symbol` | `"❌"` | The symbol displayed on program error | | `success_symbol` | `""` | The symbol displayed on program success | | `not_executable_symbol` | `"🚫"` | The symbol displayed when file isn't executable | | `not_found_symbol` | `"🔍"` | The symbol displayed when the command can't be found | diff --git a/src/configs/status.rs b/src/configs/status.rs index dd701887..a27f2ed2 100644 --- a/src/configs/status.rs +++ b/src/configs/status.rs @@ -30,7 +30,7 @@ impl<'a> Default for StatusConfig<'a> { fn default() -> Self { StatusConfig { format: "[$symbol$status]($style) ", - symbol: "✖", + symbol: "❌", success_symbol: "", not_executable_symbol: "🚫", not_found_symbol: "🔍", diff --git a/src/modules/status.rs b/src/modules/status.rs index e14afd6a..d00cf19f 100644 --- a/src/modules/status.rs +++ b/src/modules/status.rs @@ -323,12 +323,12 @@ mod tests { for status in &exit_values { let expected = Some(format!( "{} ", - Color::Red.bold().paint(format!("✖{}", status)) + Color::Red.bold().paint(format!("❌{}", status)) )); let actual = ModuleRenderer::new("status") .config(toml::toml! { [status] - symbol = "✖" + symbol = "❌" disabled = false }) .status(*status) @@ -345,12 +345,12 @@ mod tests { for (exit_value, string_value) in exit_values.iter().zip(string_values) { let expected = Some(format!( "{} ", - Color::Red.bold().paint(format!("✖{}", string_value)) + Color::Red.bold().paint(format!("❌{}", string_value)) )); let actual = ModuleRenderer::new("status") .config(toml::toml! { [status] - symbol = "✖" + symbol = "❌" disabled = false format = "[${symbol}${hex_status}]($style) " })