Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Mention supported hex colors#14494

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged
OskarStark merged 1 commit intosymfony:5.xfromfreezy-sk:console-coloring
Oct 30, 2020

Conversation

@freezy-sk
Copy link
Contributor

Mention supported hex colors for foreground and background
Fixes#13795

OskarStark reacted with hooray emoji
@OskarStark
Copy link
Contributor

Thank you for this contribution, just a minor comment from my side.

the nearest named color is used.

Can you explain this a little bit "better" or add an example?

Thanks

@OskarStarkOskarStark added this to the5.2 milestoneOct 28, 2020

// ...
$outputStyle = new OutputFormatterStyle('red', 'yellow', ['bold', 'blink']);
$outputStyle = new OutputFormatterStyle('#F00', 'yellow', ['bold', 'blink']);
Copy link
Contributor

@noniagriconomienoniagriconomieOct 28, 2020
edited
Loading

Choose a reason for hiding this comment

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

Maybe you should mentioned that this only works for sf5.2+ no?
Maybe keep the previous code and add the new code hex with those explanations?

Copy link
ContributorAuthor

Choose a reason for hiding this comment

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

That's why is this pull request made into 5.x branch instead of lower version

Copy link
Contributor

Choose a reason for hiding this comment

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

Yes of course, I meant adding a version added docbloc for this version :)

Copy link
ContributorAuthor

Choose a reason for hiding this comment

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

sorry I didn't knew that. I added thatversionadded and switched red back to previous and changed yellow to hex code. Or do you prefer duplicating that piece of code with note that since 5.2 it can be defined as hexa?

noniagriconomie reacted with thumbs up emoji
@freezy-sk
Copy link
ContributorAuthor

@OskarStark thanks, good point. I also made a test for that hidden featuresymfony/symfony#38866

fabpot added a commit to symfony/symfony that referenced this pull requestOct 29, 2020
This PR was squashed before being merged into the 5.2-dev branch.Discussion----------[Console] Test degraded true colors| Q             | A| ------------- | ---| Branch?       | 5.x| Bug fix?      | no| New feature?  | no <!-- please update src/**/CHANGELOG.md files -->| Deprecations? | no <!-- please update UPGRADE-*.md and src/**/CHANGELOG.md files -->| Tickets       | <!-- prefix each issue number with "Fix #", no need to create an issue if none exist, explain below instead -->| License       | MIT| Doc PR        |symfony/symfony-docs#14494 <!-- required for new features -->Testing hidden feature of hex colors degraded to ANSI named colors for terminals without true color support.Commits-------a26dc09 [Console] Test degraded true colors
symfony-splitter pushed a commit to symfony/console that referenced this pull requestOct 29, 2020
This PR was squashed before being merged into the 5.2-dev branch.Discussion----------[Console] Test degraded true colors| Q             | A| ------------- | ---| Branch?       | 5.x| Bug fix?      | no| New feature?  | no <!-- please update src/**/CHANGELOG.md files -->| Deprecations? | no <!-- please update UPGRADE-*.md and src/**/CHANGELOG.md files -->| Tickets       | <!-- prefix each issue number with "Fix #", no need to create an issue if none exist, explain below instead -->| License       | MIT| Doc PR        |symfony/symfony-docs#14494 <!-- required for new features -->Testing hidden feature of hex colors degraded to ANSI named colors for terminals without true color support.Commits-------a26dc0931b [Console] Test degraded true colors
@OskarStark
Copy link
Contributor

OskarStark commentedOct 30, 2020
edited
Loading

Thanks Marek for working on this feature, this is much appreciated and congrats on your first contribution to the Symfony docs 🎉

freezy-sk reacted with heart emoji

@OskarStarkOskarStark merged commit7f464ac intosymfony:5.xOct 30, 2020
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment

Reviewers

@OskarStarkOskarStarkOskarStark approved these changes

+2 more reviewers

@noniagriconomienoniagriconomienoniagriconomie left review comments

@derrabusderrabusderrabus approved these changes

Reviewers whose approvals may not affect merge requirements

Assignees

No one assigned

Projects

None yet

Milestone

5.2

Development

Successfully merging this pull request may close these issues.

[Console] Add support for true colors

5 participants

@freezy-sk@OskarStark@derrabus@noniagriconomie@carsonbot

[8]ページ先頭

©2009-2025 Movatter.jp