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

Add true color detection for k6 banner #4547

Merged
merged 1 commit into from
Feb 14, 2025
Merged

Conversation

inancgumus
Copy link
Member

@inancgumus inancgumus commented Feb 13, 2025

What?

Only color the k6 logo with RGB(0xFF, 0x67, 0x1d) if the terminal supports TrueColor. Otherwise, it picks k6 v0.54.0's yellow color. This change should cover most cases, but we can still improve it later. It feels safer to fall back to a 256-color scheme rather than using TrueColor from the get-go.

Why?

#4542

Checklist

  • I have performed a self-review of my code.
  • I have added tests for my changes.
  • I have run linter locally (make lint) and all checks pass.
  • I have run tests locally (make tests) and all tests pass.
  • I have commented on my code, particularly in hard-to-understand areas.

Related PR(s)/Issue(s)

@inancgumus inancgumus added the ux label Feb 13, 2025
@inancgumus inancgumus self-assigned this Feb 13, 2025
@inancgumus inancgumus requested a review from a team as a code owner February 13, 2025 16:45
@inancgumus inancgumus requested review from mstoykov and codebien and removed request for a team February 13, 2025 16:45
This will cover most cases, but we can still improve it later. It feels
safer to fallback to a 256-color scheme rather than enabling TrueColor
from the get go.
@inancgumus inancgumus force-pushed the add/true-color-detection branch from cc3b501 to f9a4877 Compare February 13, 2025 16:48
@codebien codebien merged commit 12d6b9e into master Feb 14, 2025
28 checks passed
@codebien codebien deleted the add/true-color-detection branch February 14, 2025 09:52
@inancgumus inancgumus added this to the v1.0.0-rc1 milestone Feb 14, 2025
@inancgumus inancgumus added documentation-needed A PR which will need a separate PR for documentation and removed documentation-needed A PR which will need a separate PR for documentation labels Feb 19, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants