Skip to content
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

Allow Confirmation Prompt Styling #1210

Merged

Conversation

wbaldoumas
Copy link
Contributor

Allows styling of ConfirmationPrompt in the same way that TextPrompt can be styled for choices and default values.

If no style is provided, fallback to the same "blue" and "green" that TextPrompt uses is done.

Addresses #1209.

@wbaldoumas
Copy link
Contributor Author

@microsoft-github-policy-service agree

@wbaldoumas
Copy link
Contributor Author

@patriksvensson curious about your thoughts on this one and if there are any issues with the proposed changes here. 😄

0xced added a commit to 0xced/spectre.console that referenced this pull request Nov 9, 2023
This will allow to slightly simplify the implementation of spectreconsole#1210

See also related discussion on spectreconsole#1349 (comment)
Copy link
Contributor

@0xced 0xced left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Seems like a good addition. I have proposed some changes that will be applicable once #1359 is merged.

src/Spectre.Console/Prompts/ConfirmationPrompt.cs Outdated Show resolved Hide resolved
src/Spectre.Console/Prompts/ConfirmationPrompt.cs Outdated Show resolved Hide resolved
src/Spectre.Console/Prompts/ConfirmationPrompt.cs Outdated Show resolved Hide resolved
src/Spectre.Console/Prompts/ConfirmationPrompt.cs Outdated Show resolved Hide resolved
patriksvensson pushed a commit that referenced this pull request Nov 10, 2023
This will allow to slightly simplify the implementation of #1210

See also related discussion on #1349 (comment)
wbaldoumas and others added 6 commits November 12, 2023 14:57
Co-authored-by: Cédric Luthi <[email protected]>
Co-authored-by: Cédric Luthi <[email protected]>
Co-authored-by: Cédric Luthi <[email protected]>
Co-authored-by: Cédric Luthi <[email protected]>
Co-authored-by: Cédric Luthi <[email protected]>
Co-authored-by: Cédric Luthi <[email protected]>
@wbaldoumas
Copy link
Contributor Author

@0xced applied your suggestions. Thanks for the review!

Copy link
Contributor

@0xced 0xced left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for your contribution!

@0xced 0xced merged commit e07ccd9 into spectreconsole:main Nov 13, 2023
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants