charmbracelet / gum

A tool for glamorous shell scripts 🎀
MIT License
18.11k stars 342 forks source link

Change the color of gum filter placeholder message #475

Closed Pouyeh closed 9 months ago

Pouyeh commented 10 months ago

Hello

I am new to GitHub and I do not know where to find the answer to my question. I have this code in my script, but I do not know how to change the color of "Gender". It shows up barely gray and I want to make it more readable, Blue mayb?

gender=$(echo -e "Male\nFemale" | gum filter --placeholder "Gender?")

I have read manual and tried examples, but none would change this color.

Thank you for your help.

maaslalani commented 9 months ago

Hi @Pouyeh, thanks for opening this issue, it is solved by https://github.com/charmbracelet/gum/pull/480

To change the placeholder, you can install the latest gum:

go install github.com/charmbracelet/gum@main

And then use the --placeholder.foreground flag:

gum filter --placeholder "Whatever you want" --placeholder.foreground 212

Let us know if you have any more questions!