-
Notifications
You must be signed in to change notification settings - Fork 6.5k
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
Update Dracula theme from upstream #490
Conversation
Great, thank you! |
@mbadolato @akx There must have been another inconsistency. All of the updated themes that use hex instead of ansi were adjusted to use the wrong color. For example, Ghostty has:
However, the correct values are:
Based on Dracula's official documentation - https://draculatheme.com/contribute In other words, foreground was correct but was changed anyway, and background was incorrect and has not been fixed. |
If these were all generated from the iterm2 theme, it seems possible that the official dracula theme for iterm2 does not respect dracula colors... Don't have iterm2 to test with |
@Gelmo This is what the Dracula I used here looks like in iTerm2. |
@akx The background color in that screenshot is incorrect. That uses #24252F, while the official Dracula theme color palette specifies #282A36 https://draculatheme.com/contribute Actually, it looks like several of those colors are incorrect. There must have been a miscalculation when converting from hex to ansi. I think all Dracula themes in this project should be reviewed to ensure they respect the official color palette. |
I've just taken a look, and the colors at https://github.com/dracula/iterm do not respect Dracula's real colors lol |
The issue is that those colors don't have a specified colorspace (#349, #354), so they're interpreted as device colors by your iTerm, and when you take a screenshot, that'll be in yet another colorspace. IOW, it's a bit fiddly to get the same sRGB hexes as specified in color documentation (such as Dracula's) if they've already been transformed to iTerm schemes. If @mbadolato doesn't oppose it, I'd love to write a PR to make it possible to source schemes from hex colors (and thus convert those themes to well-color-spaced iTerm schemes), and then define Darcula in terms of the official color definition. |
Follows up on mbadolato#490
Also adds a script to convert Kitty to YAML. Follows up on mbadolato#490
@Gelmo Do these look more correct? |
Also adds a script to convert Kitty to YAML. Follows up on mbadolato#490
Also adds a script to convert Kitty to YAML. Follows up on mbadolato#490
Also adds a script to convert Kitty to YAML. Follows up on mbadolato#490
That is very interesting; great catch!
Great idea.
I'll post a response to this in your new PR. I had originally used the screenshot you posted here instead of the the image in the new PR, and there were several issues in the screenshot here which are not present in the new image:
|
@akx I'd be all for it! Anything that makes things simpler, and more correct! To clarify, are you talking about changing things so a definition file is used for themes, then all (including iterm's) are built from those? It would make life simpler, and allow non iTerm users to submit themes that way. |
@mbadolato Great! 😁 #512 (still a draft, see within) implements this in a non-intrusive way: both iTerm schemes and YAML-based schemes are source material, and where defined, a YAML-based scheme is considered the source material from which an iTerm scheme is generated. :) |
Also adds a script to convert Kitty to YAML. Follows up on mbadolato#490
Also adds a script to convert Kitty to YAML. Follows up on mbadolato#490
Also adds a script to convert Kitty to YAML. Follows up on mbadolato#490
Also adds a script to convert Kitty to YAML. Follows up on mbadolato#490
Description
Fixes #487.
Theme
SubmissionUpdate ChecklistREADME.md
with new theme and screenshotCREDITS.md
with new themetools/gen.py
to generate themes in all formatsscreenshots/README.md
with new theme