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

Allow themes to be provided as a text file (launch option?) #86

Closed
SapiensAnatis opened this issue Aug 17, 2017 · 1 comment
Closed

Comments

@SapiensAnatis
Copy link

SapiensAnatis commented Aug 17, 2017

I'm currently making a few changes to the default theme and it's kind of irritating how I have to recompile the entire project just to see how a slightly different colour looks (which takes around 50 seconds for me).

It would be nice if I could instead work in a text file and just restart the bar with that as an argument.

I understand if parsing the text file to implement a Theme object could be a lot of work, then this may not be worth it.

@SapiensAnatis SapiensAnatis changed the title Allow themes to be provided as a launch option through .toml Allow themes to be provided as a text file (launch option?) Aug 17, 2017
@svmnotn
Copy link
Contributor

svmnotn commented Aug 17, 2017

@SapiensAnatis you can override themes in your config file.
Take a look at example-theme.toml and it's icon counterpart to see how to do it.

However I wouldn't be entirely opposed to allowing the string to be parsed as the location of a file to be loaded, perhaps relative to the location of the config.toml file.
That it would then just use the default theme and treat the file as an override, or just use the file as an unnamed theme as I think the system doesn't actually have an issue with that, but @pitkley would know more about that one.

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

No branches or pull requests

2 participants