-
-
Notifications
You must be signed in to change notification settings - Fork 281
Dracula theme #1138
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
base: main
Are you sure you want to change the base?
Dracula theme #1138
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@SwarupKharul This looks like a good already - thanks for investigating! 👍
I left some notes on style inline, and also while a lot of the colors appear to match, the references aren't to the colors or the dracula theme website - which maybe slightly disagree with the .vim file?
It looks like the linters should be fixable by running isort and black. The tests are failing since there is no data in the style for syntax highlighting, which the theme contribution guide may have not been updated for yet (it was added over the Summer).
zulipterminal/themes/dracula.py
Outdated
------- | ||
This theme uses the official dracula color scheme. | ||
For color reference see: | ||
https://github.com/dracula/vim/blob/d1864ac0734ce51150affa96a35a1e01ade08b79/colors/dracula.vim |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This link seems to be a file that indicates how the colors are used, rather than the actual color specification?
I found another (.vim) file in that repo that seems to (mostly) match the colors you added, but there are also colors in the official dracula theme website that seem slightly different, at least the darker ones?
The 'h' codes seem to approximate the .vim numbers; are these equivalent to the numbers in the dracula theme itself, do you know? These seem quite different, so I'm not sure if they're a different system.
zulipterminal/themes/dracula.py
Outdated
# color = 16code 256code 24code | ||
DEFAULT = 'default default default' | ||
BG_DARK = 'dark h235 #21222C' | ||
BG_LIGHT = 'white h253 #F8F8F2' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Isn't this FG ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes
Thank you @neiljp! I will go through the recommended changes and do the needful. |
@SwarupKharul Please let us know if you need more help :) |
@neiljp I have made the required changes. |
Heads up @SwarupKharul, we just merged some commits that conflict with the changes your made in this pull request! You can review this repository's recent commits to see where the conflicts occur. Please rebase your feature branch against the |
@SwarupKharul Belated thanks for this again :) You had failing tests, and indeed the theme is missing some elements and has some invalid ones. In looking what was wrong, I've adjusted some tests, documentation and now have #1160 pending which should reduce some of the challenges in theme contribution. |
For reference, the pygments we now depend upon should support syntax highlighting with a dracula pygments style. |
What does this PR do?
Added support for dracula theme
Partial fix for #1133
Tested?
Commit flow
Notes & Questions
Visual changes
