1
0
mirror of synced 2024-09-24 11:38:26 +02:00

fix: Theme color flashing amount being off

This commit is contained in:
WerWolv 2023-11-14 22:36:48 +01:00
parent 8e58f469b0
commit 73454905e8

View File

@ -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);;