fix: Revert accent color changes

This commit is contained in:
WerWolv
2025-02-16 22:52:54 +01:00
parent 677dc6192d
commit efa50a8c39

View File

@@ -16,7 +16,7 @@ namespace hex {
AutoReset<std::map<std::string, ThemeManager::StyleHandler>> s_styleHandlers;
AutoReset<std::string> s_imageTheme;
AutoReset<std::string> s_currTheme;
AutoReset<std::optional<std::array<float, 2>>> s_accentColor;
AutoReset<std::optional<float>> 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();
}