feat(battery): Update default unknown_symbol (#7278)

This commit is contained in:
Vasile C.
2026-02-28 19:13:03 +01:00
committed by GitHub
parent 3885e81357
commit 88d384f582
4 changed files with 5 additions and 5 deletions
+2 -2
View File
@@ -91,7 +91,7 @@
"full_symbol": "󰁹 ", "full_symbol": "󰁹 ",
"charging_symbol": "󰂄 ", "charging_symbol": "󰂄 ",
"discharging_symbol": "󰂃 ", "discharging_symbol": "󰂃 ",
"unknown_symbol": "󰁽 ", "unknown_symbol": "󰂑 ",
"empty_symbol": "󰂎 ", "empty_symbol": "󰂎 ",
"display": [ "display": [
{ {
@@ -1960,7 +1960,7 @@
}, },
"unknown_symbol": { "unknown_symbol": {
"type": "string", "type": "string",
"default": "󰁽 " "default": "󰂑 "
}, },
"empty_symbol": { "empty_symbol": {
"type": "string", "type": "string",
+1 -1
View File
@@ -527,7 +527,7 @@ The module is only visible when the device's battery is below 10%.
| `full_symbol` | `'󰁹 '` | The symbol shown when the battery is full. | | `full_symbol` | `'󰁹 '` | The symbol shown when the battery is full. |
| `charging_symbol` | `'󰂄 '` | The symbol shown when the battery is charging. | | `charging_symbol` | `'󰂄 '` | The symbol shown when the battery is charging. |
| `discharging_symbol` | `'󰂃 '` | The symbol shown when the battery is discharging. | | `discharging_symbol` | `'󰂃 '` | The symbol shown when the battery is discharging. |
| `unknown_symbol` | `'󰁽 '` | The symbol shown when the battery state is unknown. | | `unknown_symbol` | `'󰂑 '` | The symbol shown when the battery state is unknown. |
| `empty_symbol` | `'󰂎 '` | The symbol shown when the battery state is empty. | | `empty_symbol` | `'󰂎 '` | The symbol shown when the battery state is empty. |
| `format` | `'[$symbol$percentage]($style) '` | The format for the module. | | `format` | `'[$symbol$percentage]($style) '` | The format for the module. |
| `display` | [link](#battery-display) | Display threshold and style for the module. | | `display` | [link](#battery-display) | Display threshold and style for the module. |
+1 -1
View File
@@ -25,7 +25,7 @@ impl Default for BatteryConfig<'_> {
full_symbol: "󰁹 ", full_symbol: "󰁹 ",
charging_symbol: "󰂄 ", charging_symbol: "󰂄 ",
discharging_symbol: "󰂃 ", discharging_symbol: "󰂃 ",
unknown_symbol: "󰁽 ", unknown_symbol: "󰂑 ",
empty_symbol: "󰂎 ", empty_symbol: "󰂎 ",
format: "[$symbol$percentage]($style) ", format: "[$symbol$percentage]($style) ",
display: vec![BatteryDisplayConfig::default()], display: vec![BatteryDisplayConfig::default()],
+1 -1
View File
@@ -313,7 +313,7 @@ mod tests {
}) })
.battery_info_provider(&mock) .battery_info_provider(&mock)
.collect(); .collect();
let expected = Some(String::from("󰁽 0% ")); let expected = Some(String::from("󰂑 0% "));
assert_eq!(expected, actual); assert_eq!(expected, actual);
} }