Skip to content

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

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

Merged

Conversation

VasilisManol
Copy link
Contributor

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

@extrawurst extrawurst requested a review from vlad-anger March 15, 2025 09:01
Copy link
Contributor

@vlad-anger vlad-anger left a comment

Choose a reason for hiding this comment

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

Nice!

@extrawurst
Copy link
Collaborator

Needs resolve then can be merged 👍

@VasilisManol
Copy link
Contributor Author

Needs resolve then can be merged 👍

Done!

@extrawurst extrawurst merged commit 597e944 into gitui-org:master Mar 16, 2025
21 checks passed
@extrawurst
Copy link
Collaborator

@VasilisManol i missed this but can you also please update the theme docs accordingly?

@VasilisManol
Copy link
Contributor Author

@extrawurst I have added a comment in the style.rs for the available default themes for syntax. In my view, syntax is just another customizable theme element, so the pointer in THEMES.md to style.rs seems enough for me.
Should I add some more explanation in THEMES.md specifically for the syntax theme?

@extrawurst
Copy link
Collaborator

Yes please it's a bit specific and different to the other styles. Ideally an example and a link to the available styles

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Syntax highlight theme on Files tab
3 participants