Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Fixed error when including theme.#290

Merged
makew0rld merged 1 commit intomakew0rld:masterfrom
Arkaeriit:fixed_include_theme
Jan 2, 2022
Merged

Fixed error when including theme.#290
makew0rld merged 1 commit intomakew0rld:masterfrom
Arkaeriit:fixed_include_theme

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