[Request] - Set colours for specific domains
anthonyp-cs opened this issue · 6 comments
It would be great to be able to highlight specific domains / subdomains with their own colours. For example:
- test.domain.com in green
- stage.domain.com in orange
- prod.domain.com in red
Unspecified domains would use the standard tab colours of the selected theme (or those set in TST).
Seconded! :-)
Said with zero entitlement, I genuinely assumed that would be the default functionality anyway (again, not said as rudeness), but it's still better than nothing :-).
How do I control what I can control, colour wise, here? (not a jibe, just isn't / wasn't clear to me in the readme.md ... I am very dumb!)
Is there a chance that I could use the userChrome.css cleverly to change it when it sees a given domain?
The use case described by anthonyp-cs is exactly what I always used with colorfultabs before and with treestyletab rainbow edition after that on. Unfortunately the second stopped working with FF 71.
I implement custom host colors (direct and regexp match) in recently released 0.7 version, please test it.
@MurzNN Thanks for the adjustment, it works great :)
I have one more question though: would it be possible to leave the tab color untouched when the tabs is selected? So if I have a production tab highlighted in red I will still see it as red while working on it instead of seeing it in light blue.
I've also discovered a small bug in the implementation:
..xxx.com in red
prefix-..xxx.com in orange
but the tab that should be orange is also red. I've also tried with a non greedy regex: .*?.xxx.com for the first domain, but it does not work.
If I disable the red regex then every tab ending with xxx.com will be colored in orange even though the "prefix-" is not present in the domain.
I've seen some similar issues to this — what is the priority-order for the tests? Top-to-bottom, or bottom-to-top?
Perhaps some "reorder" buttons to change those priorities, moving some colour-regexes above or below other ones, would help!
would it also be possible to have the saturation/brightness settings applied to tabs when they're using customized per host colors? edit: although i guess you can just use apply a different color code to get the same effect