Skip to content

Change menu information text to dim - #11671

Merged
jhrotko merged 1 commit into
docker:mainfrom
jhrotko:change-menu-info-color
Mar 28, 2024
Merged

jhrotko merged 1 commit into
docker:mainfrom
jhrotko:change-menu-info-color

Conversation

@jhrotko

@jhrotko jhrotko commented Mar 27, 2024 •

Copy link
Copy Markdown
Contributor

What I did
Change hard coded gray color to use dim code \033[2m instead and let the terminal handle the dimming of the default color text.

Related issue

fixes https://docker.atlassian.net/jira/software/c/projects/COMP/boards/576?selectedIssue=COMP-502

(not mandatory) A picture of a cute animal, if possible in relation to what you did
image

@jhrotko
jhrotko requested review from glours, milas and ndeloof March 27, 2024 18:07
@jhrotko jhrotko self-assigned this Mar 27, 2024

@glours glours left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

πŸ‘

@codecov

codecov Bot commented Mar 27, 2024 •

Copy link
Copy Markdown

Codecov Report

Attention: Patch coverage is 0% with 3 lines in your changes are missing coverage. Please review.

Project coverage is 54.64%. Comparing base (6fe69b2) to head (422b46e).

Files Patch % Lines
cmd/formatter/shortcut.go 0.00% 3 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main   #11671      +/-   ##
==========================================
- Coverage   54.65%   54.64%   -0.01%     
==========================================
  Files         145      145              
  Lines       12600    12601       +1     
==========================================
  Hits         6886     6886              
- Misses       5018     5019       +1     
  Partials      696      696              

β˜” View full report in Codecov by Sentry.
πŸ“’ Have feedback on the report? Share it here.

@jhrotko
jhrotko force-pushed the change-menu-info-color branch from 953aeb9 to 549f1b1 Compare March 28, 2024 09:39
Comment thread cmd/formatter/colors.go Outdated
const (
BOLD = "1"
FAINT = "2"
DIM = "2"

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

I always seen this one referred as "FAINT", as listed on https://en.wikipedia.org/wiki/ANSI_escape_code

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

reverted the change

Signed-off-by: Joana Hrotko <joana.hrotko@docker.com>
@jhrotko
jhrotko force-pushed the change-menu-info-color branch from 549f1b1 to 422b46e Compare March 28, 2024 11:21
@jhrotko
jhrotko merged commit 339b331 into docker:main Mar 28, 2024
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.

3 participants