diff --git a/src/renderer/widgets/PasswordInputField.cpp b/src/renderer/widgets/PasswordInputField.cpp index d16cfbb..8a4b7f8 100644 --- a/src/renderer/widgets/PasswordInputField.cpp +++ b/src/renderer/widgets/PasswordInputField.cpp @@ -263,7 +263,7 @@ void CPasswordInputField::updateEye() { request.type = CAsyncResourceGatherer::eTargetType::TARGET_TEXT; request.props["font_family"] = fontFamily; request.props["color"] = colorConfig.font; - request.props["font_size"] = eye.size; + request.props["font_size"] = (int)(std::nearbyint(configSize.y * eye.size * 0.5f) * 2.f); eye.resourceID = textResourceID; diff --git a/src/renderer/widgets/PasswordInputField.hpp b/src/renderer/widgets/PasswordInputField.hpp index 788eb3a..c97d288 100644 --- a/src/renderer/widgets/PasswordInputField.hpp +++ b/src/renderer/widgets/PasswordInputField.hpp @@ -76,7 +76,7 @@ class CPasswordInputField : public IWidget { struct { bool center = false; - float size = .25; + float size = 0.25; std::string content = ""; std::string resourceID = ""; std::string pendingResourceID = ""; @@ -86,12 +86,11 @@ class CPasswordInputField : public IWidget { } password; struct { - int size = 16; + int margin = 4; + double size = 0.25; std::string resourceID = ""; std::string placement = "right"; SPreloadedAsset* asset = nullptr; - - const int margin = 4; } eye; struct {