TST-Colored-tabs icon indicating copy to clipboard operation
TST-Colored-tabs copied to clipboard

[Request] - Set colours for specific domains

Open anthonyp-cs opened this issue 6 years ago • 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).

anthonyp-cs avatar Oct 22 '19 08:10 anthonyp-cs

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?

eliotcole-projectfive avatar Nov 11 '19 10:11 eliotcole-projectfive

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.

cbertoldi avatar Dec 04 '19 15:12 cbertoldi

I implement custom host colors (direct and regexp match) in recently released 0.7 version, please test it.

MurzNN avatar Mar 22 '20 22:03 MurzNN

@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.

cbertoldi avatar Mar 30 '20 13:03 cbertoldi

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!

ELLIOTTCABLE avatar Jun 24 '20 15:06 ELLIOTTCABLE

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

silverwings15 avatar Nov 20 '20 05:11 silverwings15