hyprwm / hyprlock

Hyprland's GPU-accelerated screen locking utility
BSD 3-Clause "New" or "Revised" License
617 stars 52 forks source link

visibility of placeholder text #372

Open uwusnyslodziak opened 3 weeks ago

uwusnyslodziak commented 3 weeks ago

placeholder text sometimes displays in full black, and sometimes in correct color

$text = cdd6f4
...
input-field {
    placeholder_text = you shall pass?
    font_color = rgb($text)
    ...
}

directly writing hex value inside rgb() gives the same results also is there a way to change font and size of this placeholder text?

PaideiaDilemma commented 2 weeks ago

I also use a font_color for the placeholder_text, but it displays it correctly all the time.

also is there a way to change font and size of this placeholder text?

Yeah you can use pango markup to do that. for example <span font_size='20pt'><i>$PROMPT</i></span>