Add option to configure the style of the choices list and the default value in TextPrompt (#681)

* Allow setting the style of the default value in TextPrompt

Add property "DefaultValueStyle" to TextPrompt which allows setting the style in which the default value is rendered.
When no style is set, the value is displayed as green text, keeping the existing behavior.

* Allow setting the style in which a TextPrompt's choices are displayed

Add property "ChoicesStyle" to TextPrompt which allows setting the style in the prompt's choices are rendered.
When no style is set, choices are displayed as blue text, keeping the existing behavior.
This commit is contained in:
Andreas Grünwald
2022-03-27 19:38:01 +02:00
committed by GitHub
parent 7998ece6b6
commit 38d9386e00
7 changed files with 158 additions and 2 deletions

View File

@ -0,0 +1 @@
Enter Value: [Choice 1/Choice 2]: Choice 2

View File

@ -0,0 +1 @@
Enter Value: [Choice 1/Choice 2]: Choice 2

View File

@ -0,0 +1 @@
Enter Value: (default): Input

View File

@ -0,0 +1 @@
Enter Value: (default): Input