-
-
Notifications
You must be signed in to change notification settings - Fork 479
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
Add option to configure the style of the choices list and the default value in TextPrompt #681
Conversation
@ap0llo sorry for the late reply. As to the tests: There are currently no tests for styling of the |
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.
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.
db59e58
to
e8fd29d
Compare
@nils-a I added some simple unit tests to ensure the styles are applied |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM!
@ap0llo your changes have been merged, thanks for your contribution 👍 |
TextPrompt currently uses a fixed style for the default value (green text) and the list of choices (blue text).
This PR adds two new properties to TextPrompt (
DefaultValueStyle
andChoicesStyle
) that allow customozing the style of these values.If no styles are set, the current green & blue values continue to be used.
Note: I'm unsure if there are tests that cover the styling of TextPrompt. If there is a place I can add a test for this, it would be great if you could point me in the right direction.