mirror of
https://github.com/hyprwm/hyprlock.git
synced 2026-05-08 22:08:02 +02:00
update eye size to be the same as password and dots
This commit is contained in:
parent
8089bb23d8
commit
11da1e7f13
2 changed files with 4 additions and 5 deletions
|
|
@ -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;
|
||||
|
||||
|
|
|
|||
|
|
@ -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 {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue