Add "White" as a cable color #2212

Closed
opened 2025-12-29 17:23:40 +01:00 by adam · 1 comment
Owner

Originally created by @DanSheps on GitHub (Dec 14, 2018).

Environment

  • Python version: 3.6
  • NetBox version: 2.5.1

Proposed Functionality

Add color white to the cable colors.

Optionally add:

  • slate(Dark Grey works, almost identical color)
  • rose
  • violet (Fuschia works, almost identical color)
  • aqua

Use Case

These fiber strand colors are missing

Database Changes

None

External Dependencies

None

Originally created by @DanSheps on GitHub (Dec 14, 2018). ### Environment * Python version: 3.6 * NetBox version: 2.5.1 ### Proposed Functionality Add color white to the cable colors. Optionally add: * ~~slate~~(Dark Grey works, almost identical color) * rose * ~~violet~~ (Fuschia works, almost identical color) * aqua ### Use Case These fiber strand colors are missing ### Database Changes None ### External Dependencies None
adam added the status: acceptedtype: feature labels 2025-12-29 17:23:40 +01:00
adam closed this issue 2025-12-29 17:23:40 +01:00
Author
Owner

@jeremystretch commented on GitHub (Dec 19, 2018):

I'm fine with adding white. Any additional colors will need to be compared to the existing list to ensure they are easily distinguished from all existing colors.

We'll also need to ensure that the proper foreground color is used. There's a utility function named foreground_color() which outputs the ideal foreground color (black or white) given an arbitrary background color. We can expose this as a template filter.

@jeremystretch commented on GitHub (Dec 19, 2018): I'm fine with adding white. Any additional colors will need to be compared to the existing list to ensure they are easily distinguished from all existing colors. We'll also need to ensure that the proper foreground color is used. There's a utility function named `foreground_color()` which outputs the ideal foreground color (black or white) given an arbitrary background color. We can expose this as a template filter.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/netbox#2212