Skip to content

Fix warning when using textMateThemeFromScheme from lib-contrib#51

Open
mateusauler wants to merge 1 commit intoMisterio77:mainfrom
mateusauler:textmate-theme-color-to-palette
Open

Fix warning when using textMateThemeFromScheme from lib-contrib#51
mateusauler wants to merge 1 commit intoMisterio77:mainfrom
mateusauler:textmate-theme-color-to-palette

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