aboutsummaryrefslogtreecommitdiffstats
path: root/src/client.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/client.rs')
-rw-r--r--src/client.rs6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/client.rs b/src/client.rs
index 3679b85..277fc2c 100644
--- a/src/client.rs
+++ b/src/client.rs
@@ -585,7 +585,11 @@ fn health_indicator_spawn(
format!("{health_gained_or_lost}"),
TextStyle {
font_size: 6.,
- color: Color::RED,
+ color: if *health_gained < 0. {
+ Color::RED
+ } else {
+ Color::GREEN
+ },
..Default::default()
},
)