From d30a5aa6c62591ac567a8a53ad3778f4443d494b Mon Sep 17 00:00:00 2001 From: luyu-wu Date: Tue, 20 Feb 2024 18:07:07 -0500 Subject: [PATCH] added alpha channel --- src/renderer/widgets/PasswordInputField.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/renderer/widgets/PasswordInputField.cpp b/src/renderer/widgets/PasswordInputField.cpp index b9ae813..a4dbd89 100644 --- a/src/renderer/widgets/PasswordInputField.cpp +++ b/src/renderer/widgets/PasswordInputField.cpp @@ -30,7 +30,7 @@ CPasswordInputField::CPasswordInputField(const Vector2D& viewport_, const std::u request.asset = placeholderText; request.type = CAsyncResourceGatherer::eTargetType::TARGET_TEXT; request.props["font_family"] = std::string{"Sans"}; - request.props["color"] = CColor{placeholder_color.r,placeholder_color.g,placeholder_color.b,0.5}; + request.props["color"] = CColor{placeholder_color.r,placeholder_color.g,placeholder_color.b,placeholder_color.a}; request.props["font_size"] = (int)size.y / 4; g_pRenderer->asyncResourceGatherer->requestAsyncAssetPreload(request); }