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

Question about the "Custom Color" feature #98

Open
nate2014jatc opened this issue Apr 5, 2019 · 4 comments
Open

Question about the "Custom Color" feature #98

nate2014jatc opened this issue Apr 5, 2019 · 4 comments

Comments

@nate2014jatc
Copy link

Hello, we are using version 2.1

I would like to know how the "Custom color" is generated. I've recently moved from a localhost install to a proper installation. We went from a bright red, to a kind of dark purple color, and I'd like to change that, if possible.

@kevinburke
Copy link
Owner

It's based on a hash of the domain name since I wanted localhost/staging etc to show up in different colors. I believe there is a configuration option you can use to set it...

@kevinburke
Copy link
Owner

kevinburke commented Apr 5, 2019

var color = colors[Math.abs(hashCode(domain)) % colors.length];

where colors are

@kevinburke
Copy link
Owner

@kevinburke
Copy link
Owner

I can give you permissions to the repo for you to make the change to make it customizable if you want (there might be an open ticket for it) or I'd suggest just modifying the Javascript to remove the colors you don't like.

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