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

more colors for rack/device roles #672

Closed
Armadill0 opened this issue Nov 8, 2016 · 5 comments
Closed

more colors for rack/device roles #672

Armadill0 opened this issue Nov 8, 2016 · 5 comments
Labels
type: feature Introduction of new functionality to the application

Comments

@Armadill0
Copy link

Armadill0 commented Nov 8, 2016

With release 1.5.1 you introduced colors for rack and device roles, which is a great thing to quickly identify different types of devices. Unfortunately we are running out of colors for our device roles.
So it would be a great if you could increase the amount of available colors to at least 20 or more.

Or maybe a better idea: Simply use something like a color picker where the user can quickly choose from the full rgb colors.

@aoyawale
Copy link
Contributor

aoyawale commented Nov 8, 2016

ran out of colors too.

@xenuser
Copy link

xenuser commented Nov 9, 2016

I agree. It would be great if you could literally add an infinite amount of colors (read: a reasonable amount of colors like 256) to NetBox.

@Gelob
Copy link
Contributor

Gelob commented Nov 9, 2016

Should at least have the hex code and/or RGB input. There are some Django plugins as well

https://github.com/jaredly/django-colorfield
https://github.com/gsiegman/django-paintstore
https://github.com/charettes/django-colorful

@jeremystretch
Copy link
Member

jeremystretch commented Nov 10, 2016

I wanted to avoid forcing people to pick their own colors, since it's difficult to find colors that are easily discernible from one another. However, I agree that the limited set we have now is insufficient. I think it would make sense to offer a list of maybe a few dozen colors, similar to the color picker in word processors. Specifically, I want to avoid colors that are easily mistaken for one another, as that would defeat the purpose of color-coding in the first place.

@jeremystretch jeremystretch added the type: feature Introduction of new functionality to the application label Nov 10, 2016
@jeremystretch
Copy link
Member

eb4cd0e replaces the static list of ten color names with a field which holds an arbitrary hexadecimal RGB value. However, the form widget restricts the user to selecting one of 24 predefined colors to avoid picking colors that are easily confused with one another.

For now, I've stuck with a simple <select> for the field's form widget. In the future this may be replaced by a JavaScript-enabled color picker.

This was referenced Dec 6, 2016
lampwins pushed a commit to lampwins/netbox that referenced this issue Oct 13, 2017
lampwins pushed a commit to lampwins/netbox that referenced this issue Oct 13, 2017
@lock lock bot locked as resolved and limited conversation to collaborators Jan 19, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
type: feature Introduction of new functionality to the application
Projects
None yet
Development

No branches or pull requests

5 participants