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

Fix warning when using textMateThemeFromScheme from lib-contrib #51

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

mateusauler
Copy link
Contributor

When using the textMateThemeFromScheme function from lib-contrib, a warning is generated:

trace: Obsolete option `colorScheme.colors' is used. It was renamed to `colorScheme.palette'.

This PR fixes this issue.

@jkuball
Copy link

jkuball commented Nov 30, 2024

I'd also be very interested in getting this merged. It is really a no-brainer. Thanks for the PR! Hopefully the maintainer finds some time in the future for this :)

As a small workaround, you could just monkeypatch the deprecation warning. That's what I am doing now for bat:

programs.bat.themes."ghetto-stylix".src = textMateThemeFromScheme {
  scheme = config.colorScheme // {colors = config.colorScheme.palette;};
};

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.

2 participants