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

Select out of the defaults syntect syntax themes in theme.ron #2532

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

VasilisManol
Copy link

This Pull Request fixes/closes #1931 discussed in #1928 .

It changes the following:
Enables selecting in the theme file, the syntax theme out of the defaults from syntect crate.

I followed the checklist:

  • I added extended unittest
  • I ran make check without errors
  • I tested the overall application
  • I added an appropriate item to the changelog

&THEME_SET.themes["base16-eighties.dark"],
);
let theme =
THEME_SET.themes.get(syntax).unwrap_or_else(|| {
Copy link
Collaborator

Choose a reason for hiding this comment

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

lets log an error if the theme cannot be found to improve UX

Copy link
Author

Choose a reason for hiding this comment

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

Done!

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.

Syntax highlight theme on Files tab
2 participants