From 73454905e8caf0d72f0b1617177a703a6aca6ac3 Mon Sep 17 00:00:00 2001 From: WerWolv Date: Tue, 14 Nov 2023 22:36:48 +0100 Subject: [PATCH] fix: Theme color flashing amount being off --- plugins/builtin/source/content/views/view_theme_manager.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/builtin/source/content/views/view_theme_manager.cpp b/plugins/builtin/source/content/views/view_theme_manager.cpp index abee899b4..5a6d9ee35 100644 --- a/plugins/builtin/source/content/views/view_theme_manager.cpp +++ b/plugins/builtin/source/content/views/view_theme_manager.cpp @@ -55,7 +55,7 @@ namespace hex::plugin::builtin { if (this->m_hoveredHandlerName == name && this->m_startingColor.has_value() && this->m_hoveredColorId.has_value()) { auto flashingColor = this->m_startingColor.value(); - const float flashProgress = std::min(1.0F, (1.0F + sinf(ImGui::GetTime() * 6) / 2.0F)); + const float flashProgress = std::min(1.0F, (1.0F + sinf(ImGui::GetTime() * 6)) / 2.0F); flashingColor.Value.x = std::lerp(flashingColor.Value.x, 1.0F, flashProgress); flashingColor.Value.y = std::lerp(flashingColor.Value.y, 1.0F, flashProgress);;