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

Exclude colors from random container color #271

Closed
Gitoffthelawn opened this issue Jun 20, 2019 · 8 comments
Closed

Exclude colors from random container color #271

Gitoffthelawn opened this issue Jun 20, 2019 · 8 comments

Comments

@Gitoffthelawn
Copy link

FF v67.0.4 64-bit, TC v0.101

Before updating to TC v0.101, Containers Theme extension always showed a color for each temporary container.

Now, with TC v0.101, the Containers Theme extension usually shows a color, but sometimes uses the color gray.

Perhaps you can fix this?

Thanks!

@stoically
Copy link
Owner

This would need a feature to exclude colors when random container colors is selected. Firefox 67 added the "toolbar" color, which is black or gray, depending on your theme.

@stoically stoically changed the title v0.101 causes Container Theme to sometimes be gray Exclude colors from random container color Jun 20, 2019
@foxdan
Copy link

foxdan commented Jun 20, 2019

👍 this is a feature I'd like for a different reason.

To use different random colours from those I use for permanent containers to still easily distinguish amongst them.

Happy to have a look at this if PRs are welcome.

@Gitoffthelawn
Copy link
Author

@stoically
Interesting. Thanks. I never encountered gray until today, even though FF 67 has been out for a while. I wonder why.

Is the fence icon a new FF 67 icon as well? It seems now to be in the rotation when Random Container Icons is enabled. Does it have any special meaning, or is it just another random icon in this case?

@stoically
Copy link
Owner

@foxdan Sure, PRs are more than welcome. I'd imagine to use a multiple selection and either hide it until random container color is selected, or make it a separate option in the advanced tab. Sorry for the code mess, good luck and let me know if I can be of help.

@Gitoffthelawn The fence is just another icon, also added with Firefox 67. Version 0.101 made the new color and icon available in TC.

@stoically
Copy link
Owner

@foxdan Just FYI, the latest added feature (#104) required a multiple selection too and I found it a bit tricky to fill it with values programmatically and get the selected values afterwards. That's what worked for me: options.html, options.js, shared.js

@stoically
Copy link
Owner

stoically commented Jul 1, 2019

v1.0beta15 allows excluding of colors and icons when random is selected.

@foxdan Sorry about inviting you to PR and then doing massive refactorings.

@Gitoffthelawn
Copy link
Author

@stoically Thanks for your hard work! Could it be possible to add colors (and maybe even icons)?

@stoically
Copy link
Owner

That's not supported by the Firefox API, so I can't help with that. Related: mozilla/multi-account-containers#391

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

No branches or pull requests

3 participants