From b8a122904a4d1ff8b697584f45a83b77221b3f6b Mon Sep 17 00:00:00 2001 From: hut Date: Mon, 15 Apr 2024 23:23:46 +0200 Subject: [PATCH] cleanup --- src/hud.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/hud.rs b/src/hud.rs index c2303d9..c987b07 100644 --- a/src/hud.rs +++ b/src/hud.rs @@ -522,14 +522,14 @@ fn update_hud( for msg in &messages { chat.sections[row].value = msg.format(); let freshness = msg.get_freshness(); - let clr: f32 = (freshness.powf(1.5) as f32).clamp(0.1, 1.0); + let opacity: f32 = (freshness.powf(1.5) as f32).clamp(0.1, 1.0); freshest_line = freshest_line.max(freshness); chat.sections[row].style.color = match msg.level { LogLevel::Warning => settings.hud_color_console_warn, LogLevel::Info => settings.hud_color_console_system, _ => settings.hud_color_console, }; - chat.sections[row].style.color.set_a(clr); + chat.sections[row].style.color.set_a(opacity); row += 1; }