Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

input_field placeholder text color is inverted #299

Open
Vosjedev opened this issue Apr 29, 2024 · 3 comments
Open

input_field placeholder text color is inverted #299

Vosjedev opened this issue Apr 29, 2024 · 3 comments

Comments

@Vosjedev
Copy link

The text color of the placeholder text in the input field is inverted. This works fine for getting light grey when the dots are dark grey, but for colors it's kinda not working.

My dots are orange rgb(255,129,0), so the placeholder text became blue (I guess rgb(0,126,255)). I would like to be able to either configure the placeholder's textcolor separately from the dots' color, or not have it be inverted.

@Vosjedev
Copy link
Author

Vosjedev commented Apr 29, 2024

I just looked at the pr's (only looked at issues before posting), and it seems like #35 adds the solution. I guess I will close this as soon as that is merged then. Sorry for yet another useless issue...


addition, 6min later

Maybe it should be clear in the docs the placeholder text is inverted, and that the solution (for now?) is to use pango markup: <span foreground=##RRGGBB>text</span>. I guess it should also be clearer you need to escape the #.

@rafaVls
Copy link

rafaVls commented Sep 4, 2024

Maybe it should be clear in the docs the placeholder text is inverted, and that the solution (for now?) is to use pango markup: <span foreground=##RRGGBB>text</span>. I guess it should also be clearer you need to escape the #.

How exactly are you writing this markup in your hyprlock.conf file? This is what I'm trying to do for my input_field:

input-field {
...
  placeholder_text = <i foreground=##3a3535>Input Password...</i>
...
}

The result is the input field placeholder text reads "<i foreground=##3a3535>Input Password...</i>"

@rafaVls
Copy link

rafaVls commented Sep 4, 2024

Figured it out, it's supposed to be:

input-field {
...
  placeholder_text = <span foreground="##3a3535"><i>Input Password...</i></span>
...
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants