diff options
author | Alexander Foremny <aforemny@posteo.de> | 2024-03-18 07:06:13 +0100 |
---|---|---|
committer | Alexander Foremny <aforemny@posteo.de> | 2024-03-18 07:08:00 +0100 |
commit | 193cb6670addf16bb18b76a1badc00f648150d0b (patch) | |
tree | 98123c3d7264a398a1d810625dc3de1a7971661f /src/client.rs | |
parent | ec17616f8d6041ac5d93a786edec0f5d0f969a46 (diff) |
fix: show health regen in ui
Diffstat (limited to 'src/client.rs')
-rw-r--r-- | src/client.rs | 6 |
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() }, ) |