diff --git a/src/chat_gui/theme.hpp b/src/chat_gui/theme.hpp index e3dc9642..7b6a20e1 100644 --- a/src/chat_gui/theme.hpp +++ b/src/chat_gui/theme.hpp @@ -35,7 +35,7 @@ struct Theme { template void setColor(ImVec4 color) { - constexpr auto key = entt::type_hash>::value(); + constexpr auto key = entt::type_hash(V)>>::value(); colors[key] = color; if (!colors_name.contains(key)) { @@ -47,7 +47,7 @@ struct Theme { } template ImVec4 getColor(void) const { - constexpr auto key = entt::type_hash>::value(); + constexpr auto key = entt::type_hash(V)>>::value(); const auto it = colors.find(key); if (it != colors.end()) { return it->second; @@ -58,7 +58,7 @@ struct Theme { template std::string_view getColorName(void) const { - constexpr auto key = entt::type_hash>::value(); + constexpr auto key = entt::type_hash(V)>>::value(); if (colors_name.contains(key)) { return colors_name.at(key); } else {