From 1ab3582ec7bc4cd6e9073d1028357f0f88fccc79 Mon Sep 17 00:00:00 2001 From: Felix Salcher Date: Tue, 3 Jun 2025 11:51:59 +0200 Subject: [PATCH] use password size --- 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 b2715bc..cfd13ba 100644 --- a/src/renderer/widgets/PasswordInputField.cpp +++ b/src/renderer/widgets/PasswordInputField.cpp @@ -190,7 +190,7 @@ void CPasswordInputField::updatePassword() { request.type = CAsyncResourceGatherer::eTargetType::TARGET_TEXT; request.props["font_family"] = fontFamily; request.props["color"] = colorConfig.font; - request.props["font_size"] = (int)(std::nearbyint(configSize.y * dots.size * 0.5f) * 2.f); + request.props["font_size"] = (int)(std::nearbyint(configSize.y * password.size * 0.5f) * 2.f); password.resourceID = textResourceID;