From efa50a8c3927896575f068cbc1312c268a8ad91f Mon Sep 17 00:00:00 2001 From: WerWolv Date: Sun, 16 Feb 2025 22:52:54 +0100 Subject: [PATCH] fix: Revert accent color changes --- lib/libimhex/source/api/theme_manager.cpp | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/lib/libimhex/source/api/theme_manager.cpp b/lib/libimhex/source/api/theme_manager.cpp index 42a187021..7851cb855 100644 --- a/lib/libimhex/source/api/theme_manager.cpp +++ b/lib/libimhex/source/api/theme_manager.cpp @@ -16,7 +16,7 @@ namespace hex { AutoReset> s_styleHandlers; AutoReset s_imageTheme; AutoReset s_currTheme; - AutoReset>> s_accentColor; + AutoReset> s_accentColor; std::recursive_mutex s_themeMutex; } @@ -173,8 +173,7 @@ namespace hex { float h, s, v; ImGui::ColorConvertRGBtoHSV(color->Value.x, color->Value.y, color->Value.z, h, s, v); - h = s_accentColor->value()[0]; - v = s_accentColor->value()[1]; + h = s_accentColor->value(); ImGui::ColorConvertHSVtoRGB(h, s, v, color->Value.x, color->Value.y, color->Value.z); } @@ -258,7 +257,7 @@ namespace hex { float h, s, v; ImGui::ColorConvertRGBtoHSV(color.Value.x, color.Value.y, color.Value.z, h, s, v); - *s_accentColor = { h, v }; + s_accentColor = h; reapplyCurrentTheme(); }