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

config: option for overrides to chroma styles #32

Merged
merged 1 commit into from
Jan 7, 2023

Conversation

ktprograms
Copy link
Contributor

@ktprograms ktprograms commented Oct 12, 2022

User facing changes:

  • Remove file option from config
  • Move theme option to theme.name
  • Add theme.chromaStyleOverrides map for style overrides

Code changes:

  • Copy code from quick.Highlight to use chroma.Style object instead of looking up by name
  • Pass chroma.Style pointer instead of object as chroma Format requires style pointer

Fix: #27
Fix: #30

@noahgorstein
Copy link
Owner

Thanks for your PR @ktprograms. I'll be out of town without my computer for about a week but will try to get to this when I'm back later next week. Cheers.

Copy link
Owner

@noahgorstein noahgorstein left a comment

Choose a reason for hiding this comment

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

This looks and works great @ktprograms. Small typo in the README but good to go otherwise. Thanks again for your contribution and apologies for just getting around to review this.

README.md Outdated Show resolved Hide resolved
User facing changes:
- Remove file option from config
- Move theme option to theme.name
- Add theme.chromaStyleOverrides map for style overrides

Code changes:
- Copy code from quick.Highlight to use chroma.Style object instead of
  looking up by name
- Pass chroma.Style pointer instead of object as chroma Format requires
  style pointer

Fix: noahgorstein#27
Fix: noahgorstein#30
@noahgorstein noahgorstein merged commit b73ad78 into noahgorstein:main Jan 7, 2023
noahgorstein added a commit that referenced this pull request Jan 7, 2023
@ktprograms ktprograms deleted the chroma-style-overrides branch January 13, 2023 07:48
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.

RFC: Configurable Chroma theme overrides
2 participants