-
Notifications
You must be signed in to change notification settings - Fork 358
Add support for changing the color of the different runes/prompts #141
Comments
Hey @celo44 - thanks for submitting this. I don't know if I will have the time in the near future to add this but if you wanted to give it a stab, I would be happy to review a PR 🙂 |
I would start by making the icons configurable. Therefore I would like to evolve to icon, which is currently a
Maybe @AlecAivazis can give some feedback about this approach. If it is accepted I will provide a PR. |
Hey @MarkusFreitag - thanks for the input. I like the idea, although I'm not sure if providing this would be too much customizability for the library. Can you maybe share your reason for wanting to change the colors? In general, i'm a bit wary of changing the public API for a relatively minor feature. I think I would prefer if there was a way to call something like Thoughts? Would that satisfy both of your needs? |
Thanks for your feedback. It does not really changes the API. Basically I have just moved the hard-coded color definitions from the template strings into the icon struct and then call
Passing this question to @celo44 |
@AlecAivazis I put the changes into a separate branch, maybe in the next days you have some time to have a look on them. As written before the API behaviour does not change. |
@AlecAivazis Any chance we can move forward with @MarkusFreitag's commit? |
@MarkusFreitag since we're preparing to merge the v2 release that will break the API, it's a good opportunity to use the API that you suggested - wanna give it a shot? |
#216 adds the survey.AskOne(prompt, &value, survey.WithIcons(func (icons *survey.IconSet) {
icons.Question = "?"
}) This can easily accommodate a richer API like the one in your branch @MarkusFreitag |
Alright, since this issue is the only one left that's slated for this |
I just opened #222 which adds the ability to modify the |
This will be released in the upcoming |
Creating a CLI with this currently and would be nice if I could change the color of the QuestionIcon application wide
The text was updated successfully, but these errors were encountered: