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

Fixed error when including theme. #290

Merged
merged 1 commit into from
Jan 2, 2022

Conversation

Arkaeriit
Copy link
Contributor

To get a new theme for Amfora, I went to the theme page, I downloaded one and I used the include key to import it. I want to use the include key because it feels way more convenient than copy-pasting a theme in the configuration file.

When the include directive was not under the [theme] tag, it was ignored, when the include key was under the [theme] tag, I got the following error:

Config error: invalid color format for "include": <My home folder>/.config/amfora/one_dark.toml

This PR make so that the theme parser ignores the include keys in order to prevent the error.

I did so by ignoring the `include` key
in the `setColor` function.
@makew0rld
Copy link
Owner

Yikes, nice catch! Thanks for your PR.

@makew0rld makew0rld merged commit 4a95df8 into makew0rld:master Jan 2, 2022
makew0rld added a commit that referenced this pull request Jan 2, 2022
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