mirror of
https://github.com/hyprwm/hyprlock.git
synced 2024-11-17 07:15:57 +01:00
added alpha channel
This commit is contained in:
parent
8f55ec8b41
commit
d30a5aa6c6
1 changed files with 1 additions and 1 deletions
|
@ -30,7 +30,7 @@ CPasswordInputField::CPasswordInputField(const Vector2D& viewport_, const std::u
|
||||||
request.asset = placeholderText;
|
request.asset = placeholderText;
|
||||||
request.type = CAsyncResourceGatherer::eTargetType::TARGET_TEXT;
|
request.type = CAsyncResourceGatherer::eTargetType::TARGET_TEXT;
|
||||||
request.props["font_family"] = std::string{"Sans"};
|
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;
|
request.props["font_size"] = (int)size.y / 4;
|
||||||
g_pRenderer->asyncResourceGatherer->requestAsyncAssetPreload(request);
|
g_pRenderer->asyncResourceGatherer->requestAsyncAssetPreload(request);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue