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

Feature request - Add the solarized color theme #988

Open
prehistoric-penguin opened this issue Apr 23, 2020 · 3 comments
Open

Feature request - Add the solarized color theme #988

prehistoric-penguin opened this issue Apr 23, 2020 · 3 comments

Comments

@prehistoric-penguin
Copy link

@prehistoric-penguin prehistoric-penguin commented Apr 23, 2020

Any plan to add the solarized color theme? Or there are any documents to show how to adding color theme?

@mlangkabel
Copy link
Contributor

@mlangkabel mlangkabel commented Apr 23, 2020

Wow, that's a good point you are bringing up here. We designed the color schemes to be easily editable and expendible. But there is not yet any documentation on that. So let me try to clarify it here and if more questions are coming up, we can add to our main documentation.

Each color scheme is defined by an .xml file located in the Sourcetrail/data/color_schemes folder. To add a new color scheme to Sourcetrail, just copy one of the existing color scheme files, rename it to your likings and start editing.
To see updates within Sourcetrail for the changes that you did, just open the Sourcetrail preferences and switch to a different color scheme and then back to the one you are editing.

Usually the entries in the .xml look like this:

<snippet>
	<background>white</background>
	<title>
		<text>#909090</text>
		<background>transparent</background>
	</title>
	...
</snippet>

But you may also encounter something like this:

<struct>
	<like>class</like>
</struct>

This like element is just a shortcut that denotes that in the graph the nodes for structs should be displayed in the same style as nodes for classes.

If you want to add the solarized color schemes, we would be happy to accept your pull request :)

@mlangkabel mlangkabel changed the title Feature request - Any plan to add the solarized color theme? Feature request - Add the solarized color theme Apr 23, 2020
@mlangkabel mlangkabel reopened this Apr 23, 2020
@mlangkabel
Copy link
Contributor

@mlangkabel mlangkabel commented Apr 28, 2020

Added information on how to create new color schemes with merge of pull request #991.

@prehistoric-penguin
Copy link
Author

@prehistoric-penguin prehistoric-penguin commented Apr 29, 2020

Thanks for so quickly response, I really appreciate your work.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
2 participants
You can’t perform that action at this time.