diff --git a/lib/libimhex/source/api/theme_manager.cpp b/lib/libimhex/source/api/theme_manager.cpp index 6f45f3f82..9aab2b492 100644 --- a/lib/libimhex/source/api/theme_manager.cpp +++ b/lib/libimhex/source/api/theme_manager.cpp @@ -27,10 +27,10 @@ namespace hex { return { h, s, v }; } - ImColor getRGB(float h, float s, float v) { + ImColor getRGB(float h, float s, float v, float a) { float r, g, b; ImGui::ColorConvertHSVtoRGB(h, s, v, r, g, b); - return ImColor(r, g, b); + return ImColor(r, g, b, a); } } @@ -195,7 +195,7 @@ namespace hex { colorS = std::max(colorS - baseS, 0.0F) + accentS; colorV = std::max(colorV - baseV, 0.0F) + accentV; - color = getRGB(colorH, colorS, colorV); + color = getRGB(colorH, colorS, colorV, color->Value.w); } (*s_themeHandlers)[type].setFunction((*s_themeHandlers)[type].colorMap.at(key), color.value());