From 5ac318d1bfad2f1abc7556ed8f7e44586acace80 Mon Sep 17 00:00:00 2001 From: Green Sky Date: Sun, 21 Apr 2024 20:39:03 +0200 Subject: [PATCH] fix cast --- src/chat_gui/theme.hpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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 {