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

Inspector: change color picker to use hex values #2159

Merged
merged 1 commit into from
Aug 28, 2024

Conversation

cryptocode
Copy link
Collaborator

Hereby proposing a minor change to the inspector's color format as a PR.

The inspector currently show colors as decimal r,g,b values. With this change, the hex format is used instead.

The motivation for this is that references to color typically use the hex format. One example is the palette definitions in a color scheme. Using the inspector/cell picker to help create and debug color themes should be more convenient after this change.

If there's a usecase for the decimal format, we could add a config option or maybe a switch in the inspector UI.

After the change:

image

The inspector currently show colors as decimal r,g,b values. With this change,
the hex format is used instead.

The motivation for this is that references to color typically use the hex format. One example
is the palette definitions in a color scheme. Using the inspector/cell picker to help
create and debug color themes should be more convenient after this change.

If there's a usecase for the decimal format, we could add a config option or maybe a switch
in the inspector UI.
@mitchellh mitchellh merged commit 19c9039 into ghostty-org:main Aug 28, 2024
17 of 19 checks passed
@mitchellh mitchellh deleted the cc-colorpicker-hex branch August 28, 2024 17:01
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