View Issue Details

IDProjectCategoryView StatusLast Update
1991RackTablesdefaultpublic2020-10-05 20:27
Reportermriske Assigned Toinfrastation  
PrioritylowSeverityfeatureReproducibilityN/A
Status closedResolutionfixed 
Product Version0.21.4 
Target Version0.21.5Fixed in Version0.21.5 
Summary1991: A way to add more tag colors?
DescriptionIs there a way to add more colors for the tags?
If possible, a color wheel or the option to edit the hex color code would be perfect.

We use the colored tags to differentiate our sites/locations.

Thanks in advance!
TagsNo tags attached.
Attached Files
grafik.png (8,342 bytes)   
grafik.png (8,342 bytes)   

Activities

infrastation

infrastation

2020-09-29 16:36

administrator   ~0004191

Internally the code can handle any 24-bit colour, it is only a matter of having a more advanced colour picker in the tag editor. Can you suggest any 3rd-party pickers that would fit well with RackTables? Ideally a GPL-licensed component that somebody else maintains.
mriske

mriske

2020-09-29 17:45

reporter   ~0004193

I'm sorry, unfortunately i don't know anything about these things.
I can look around, but i don't think i can contribute.
infrastation

infrastation

2020-10-05 03:02

administrator   ~0004195

Would it do the job for you if you could replace the default hard-coded list of available tag colours with your own hard-coded list in secret.php?
mriske

mriske

2020-10-05 09:36

reporter   ~0004197

Yes, that would suffice. Is it already possible?
Is it then possible to have more than the existing 17 colors?
infrastation

infrastation

2020-10-05 20:26

administrator   ~0004199

RackTables 0.21.5 is available for download, it will allow you to modify the palette if you create a .php file with a name of your choice (for example, "tag_palette.php") in the directory "plugins" (or the plugins directory explicitly configured via $racktables_plugins_dir) with the contents along the lines below:

--------8<--------8<--------8<--------8<--------8<--------8<--------8<--------
<?php

# To replace the default palette:
$tag_palette = array ('ff0000', '00ff00', '0000ff'); # red, green, blue

# To extend the default palette:
$tag_palette = array_merge ($tag_palette, array ('ff0000', '00ff00', '0000ff'));
--------8<--------8<--------8<--------8<--------8<--------8<--------8<--------

Closing as fixed.

Issue History

Date Modified Username Field Change
2020-09-29 15:05 mriske New Issue
2020-09-29 15:05 mriske File Added: grafik.png
2020-09-29 16:36 infrastation Note Added: 0004191
2020-09-29 17:45 mriske Note Added: 0004193
2020-10-05 03:02 infrastation Note Added: 0004195
2020-10-05 09:36 mriske Note Added: 0004197
2020-10-05 13:53 infrastation Target Version => 0.21.5
2020-10-05 20:26 infrastation Status new => closed
2020-10-05 20:26 infrastation Resolution open => fixed
2020-10-05 20:26 infrastation Fixed in Version => 0.21.5
2020-10-05 20:26 infrastation Note Added: 0004199
2020-10-05 20:27 infrastation Assigned To => infrastation