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

[Request] - Set colours for specific domains #9

Open
anthonyp-cs opened this issue Oct 22, 2019 · 6 comments
Open

[Request] - Set colours for specific domains #9

anthonyp-cs opened this issue Oct 22, 2019 · 6 comments

Comments

@anthonyp-cs
Copy link

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 anthonyp-cs changed the title [Request] [Request] - Set colours for specific domains Oct 22, 2019
@eliotcole-projectfive
Copy link

eliotcole-projectfive commented Nov 11, 2019

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?

@cbertoldi
Copy link

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.

@MurzNN
Copy link
Owner

MurzNN commented Mar 22, 2020

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

@cbertoldi
Copy link

cbertoldi commented Mar 30, 2020

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

@ELLIOTTCABLE
Copy link

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!

@silverwings15
Copy link

silverwings15 commented Nov 20, 2020

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants