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

Add ability to set custom colors #391

Open
johngruen opened this issue Mar 17, 2017 · 38 comments
Open

Add ability to set custom colors #391

johngruen opened this issue Mar 17, 2017 · 38 comments
Labels
Component: Accessibility Issues related to accessibility Needs: Mozilla Central Needs changes in Mozilla-Central 👍 Feature Request Feature requests users would like to see in this addon

Comments

@johngruen
Copy link
Contributor

This issue comes from Discourse:

Just as it says - allow us to pick any color (or, optionally, enter RGB / HEX values directly for a particular color) instead of only using pre-defined colors.

@johngruen
Copy link
Contributor Author

Would be cool, we could probably use an input type="Color" so long as the element display is somewhat customizable (i have no idea, but I assume we could hack it). Only issue i see is that we're currently declaring color vals in the SDK and WebExtensons bits of the experiment

@JohnLGalt
Copy link

Thanks, John. I hadn't had time yet to make it over here to post this as a request, was planning on doing so today - glad to see it made it over here already.

@jonathanKingston jonathanKingston added this to the Stretch milestone Mar 24, 2017
@jonathanKingston
Copy link
Contributor

@johngruen to talk with the design team regarding more colours and the UX for this. Also looking at the different blue on blue tab highlight issues.

@smichel17
Copy link

I'd also like more colors (and icons). While custom colors would be nice, just adding a few (4?) more would go a long way in the short term.

@groovecoder groovecoder removed this from the Stretch milestone Apr 28, 2017
@grahamperrin

This comment has been minimized.

@grahamperrin

This comment has been minimized.

@jonathanKingston
Copy link
Contributor

jonathanKingston commented Aug 29, 2017 via email

@grahamperrin

This comment has been minimized.

@grahamperrin

This comment has been minimized.

@grahamperrin grahamperrin mentioned this issue Sep 1, 2017
@grahamperrin

This comment has been minimized.

@mirdaki
Copy link

mirdaki commented Oct 6, 2017

Hey all, dropping in to add that some of the current colors can be hard to differentiate for people with color blindness (friend was having trouble when I showed him containers). So either having more colors, custom colors, or colorless ways to differentiate containers would be really helpful on that front.

@grahamperrin

This comment has been minimized.

@gomopa
Copy link

gomopa commented Feb 18, 2018

I'm supporting this.
Already opened a feature request for more colours:
#1101
but is unanswered

@grahamperrin

This comment has been minimized.

@grahamperrin
Copy link

… to Bugzilla@Mozilla – probably next week, …

Much later (!) than originally planned,

@mirdaki there's yellow text on white background in the first two screenshots. More generally it'll be good for people with an eye (or ear) for accessibility to consider how things might look (or sound) if there's to be greater cohesion.

Colourless

It's possible to manually edit a file – there's an example at #984 (comment) – but (as indicated in the reply to my comment) it can be a bad idea, if not performed with care.

@mirdaki
Copy link

mirdaki commented Feb 24, 2018

@grahamperrin I totally agree the yellow on white is a bad contrast. Even without being color blind I have trouble reading it from a distance. Granted, themes can change the white background so yellow could work sometimes.

In regards to placing the info on the left, I'm not sure how much it would do. I don't feel like most people associate the left side with security/privacy information, because I don't think most people pay attention to that (granted people using containers are probably more advanced and would have that association). Staying on the right may even help them stand out as they wouldn't be competing as heavily with other icons. I could be wrong of course. Doing some user testing is probably the only way to find out for sure.

@stoically
Copy link
Member

Since I didn't saw it mentioned here, here's a CSS-only way to change container colors:


open about:profiles, click on "open directory" for your active profiles root directory, open or create the chrome folder, create userChrome.css in it, with the content:

[data-identity-color="red"] {
  --identity-tab-color: #000000 !important;
  --identity-icon-color: #000000 !important;
}

Adjust #000000 to your liking. "red" can be any color you can set as container color, so you can overwrite different colors. Restart browser to see the changes.

Pro-Tip: Click the Firefox Menu, Select "Web Developer", Select "Browser Toolbox", Confirm the Dialog with OK. The Element-Picker (Top-Left) can select any Firefox Menu and reveal the underlying CSS that you can overwrite with userChrome.css

Source: https://www.reddit.com/r/unixporn/comments/78m6t1/oc_firefox_dark_theme/

@jamesinc
Copy link

+1 for at least more than 8 colours. It would be easy if we could just specify arbitrary colours, but e.g. in my use-case I have 16 different contexts I want to be able to run where each is a pair of related contexts, so ideally I'd setup my tabs with light purple/dark purple, light green/dark green, pink/red, light blue/dark blue, and so on. Hex codes, colour wheel, or even just supporting all of the 147 named colours, anything beats having to manually edit the extensions config files.

@silverwings15
Copy link

+1 for customizable colors, would be so very helpful

@Kolobamanacas
Copy link

Before I read all the comments, I thought that fully customizable colors is overkill. Anyway somethings definitely should be done, at least adding much more colors. My personal issue is that I'm using dark theme everywhere where it's possible, and all the available colors are too bright. So, yup, it would nice feature to have.

@grahamperrin
Copy link

grahamperrin commented Mar 19, 2021

#391 (comment)

From the outset, consistently, I have wanted all containers to be colourless.

In the context of the location bar, that means black text (or whatever colour is used for the URL).

Containers Helper

– it's not only for ending colour variations, but it does meet my need.

@weyCC81
Copy link

weyCC81 commented Apr 13, 2021

I would also like to have more options. As I understand the concerns of colorblind people, I would suggest adding line-style.

with 10x colors and 3x styles I would have 30 options instead of 10 ...
(I do not really use icon's as I can not see them when the tab is open).

@weyCC81 weyCC81 mentioned this issue Apr 13, 2021
@houdayec
Copy link

houdayec commented Jun 2, 2021

  • Colors too bright when using Dark Mode
  • as @weyCC81 said, you should think about colorblind people
  • add more colors to palette (predefined is a great start, custom is awesome)

Containers have a lot of potential but it is not prioritized at all, too bad..

@santo998
Copy link

santo998 commented Jun 3, 2021

It would be useful to just ADD more colors to the containers.
i.e.: red, black and blue.

@awilkins
Copy link

awilkins commented Sep 9, 2021

I'd love this extension to have the ability to set an arbitrary colour for a given tab, since it can already pick from the palette available and set the icon and name.

https://addons.mozilla.org/en-GB/firefox/addon/open-url-in-container/

That would make e.g. scripting it to log into specific AWS accounts in separate containers with a colour generated from hashing the profile name nice and simple.

@BlooDCrescent
Copy link

Would be cool to finally see custom colors after 5 years of waiting instead of watching Mozilla VPN ads :)

@luminant
Copy link

I just noticed you've removed white color. I only tried to manage a container to check some settings and puuuf, the white color was gone... Like it wouldn't be bad enough for not giving us more colors but you also take away those we are used to. I don't know much of a coding but I can only imagine it must be really hard and time-consuming taken that this issue has been open for 5 years.

@Lewis8379
Copy link

I was thinking the same as @BlooDCrescent - clearly Firefox is heading in the wrong direction, ramming VPN ads down my neck instead of basic functionality like custom colours - and removing them? Really?

@dannycolin dannycolin added 👍 Feature Request Feature requests users would like to see in this addon Needs: Mozilla Central Needs changes in Mozilla-Central and removed enhancement labels May 20, 2022
@dannycolin dannycolin changed the title Let users set custom colors Add ability to set custom colors May 21, 2022
@AR45H
Copy link

AR45H commented Jul 28, 2022

5 years of people asking for more colors and nothing...
How hard is it to open it up and let the user add custom colors? I mean for ****** sake the colors are what the user looks at and identifies if a tab is in the container he is looking for. How can such a simple request take 5 years and no reply from devs?
As it is now the user is essentially limited to only 8 containers as the colors are what a user can use to differentiate between the different containers on the tab bar.
Maybe if the icons were shown on tabs on the tab bar the mix of color and icon would allow for more containers to be identified by the user at a glance.
Either way for Mozilla to take more than 5 years to add functionality anyone would consider basic is appalling.

@Lewis8379
Copy link

5 years of people asking for more colors and nothing... How hard is it to open it up and let the user add custom colors? I mean for ****** sake the colors are what the user looks at and identifies if a tab is in the container he is looking for. How can such a simple request take 5 years and no reply from devs? As it is now the user is essentially limited to only 8 containers as the colors are what a user can use to differentiate between the different containers on the tab bar. Maybe if the icons were shown on tabs on the tab bar the mix of color and icon would allow for more containers to be identified by the user at a glance. Either way for Mozilla to take more than 5 years to add functionality anyone would consider basic is appalling.

I am in total agreement. It wasn't quite as bad when the whole tab was coloured, but now it's just a thin bar along the top, alongside the lack of colour choices, it is incredibly difficult to distinguish different tabs. I'm having to adjust my behaviour to have different containers in different windows because it's the only way I can easily seperate them. But I shouldn't have to.

It is a simple request and Mozilla wonder why they have a low share of the browser market, when stuff like this goes ignored.

This container system is genuinely BRILLIANT and INNOVATING and could capture people who are questioning their browser choices to sway them over to Firefox. Yet it's half baked with issues like this. The piss poor management is so confusing.

@jonathanKingston
Copy link
Contributor

Either way for Mozilla to take more than 5 years to add functionality anyone would consider basic is appalling.

Applications aren't built like web pages, the CSS was generative initially and it caused slowdown in the browser; something which a lot more users would care about.

The browser would have to modify (https://bugzilla.mozilla.org/show_bug.cgi?id=1325057):

There's probably ~200 users who want this, who easily could modify userChrome.css as mentioned above. This repo has lots of examples of things Mozilla could also work on (that they haven't) but instead they're focusing improving privacy and security of millions of people.

The code is open source, patches are welcome etc!

@TonyGravagno
Copy link

PMJI : I'm a developer but not on this project. As a Firefox user, I want these MAC features like all others here. We cast our votes and hope that we get what we want - this is the way FOSS works. We don't always get what we want. Those of us who want these features are in the minority. Folks here need to deal with that reality.

I sometimes press for change too, especially when tickets are old and seemingly forgotten. (One sample is in another ticket on this same topic #1566.) But after expressing an opinion, concern, disappointment, even some indignation if feeling ignored, it's time to stand down.

@jonathanKingston provided some very helpful information about the details related to processing this request. He didn't need to take his time to do that. The downvotes on his comment are rude and I suggest removing them. I suspect the downvotes are there because those who added them are just disappointed that the feature hasn't been implemented, and they're seeing the notes here as an excuse, or "blah blah tech details blah blah". You've expressed your views about the feature. When you express your view on the quality of a comment, separate your opinions. There might be a very good comment on a feature that you don't support. Or a very bad comment on a feature that you do support. Jonathan's comment was detailed, well stated, well intended, and very helpful ... even if it means we ultimately might not get this feature for another 5 years or ever.

In summary: Please do separate your concerns. Blow off steam but do so productively. Show appreciation for developer interaction with your Free and Open Source Software. Don't demoralize developers into a state where they prefer not to interact. And if you feel that an issue requires more attention, as many of us do about this ticket, justify your position with the kind of detail that Jonathan provided. This applies to all GitHub projects and all FOSS everywhere.

Thanks for your time.

@TonyGravagno
Copy link

@jonathanKingston Perhaps another approach could be considered, with a different direction from the original implementation. Container tabs are treated as something special. Maybe that was taken too far. Maybe the UI elements should not be special.

When the identity is defined, the UI elements are wrapped in the data. I'm thinking it might be better to fire an event to get UI elements to override existing settings. This would be after the check for a valid icon/resource and after getting the color from the hard-coded map.

Tabs are dynamic. With every page refresh and other events we see the site Title injected into an attribute. Can we get access to all attributes of all DOM elements for tabs via the API? If so, might we be able to use an extension to determine which container a tab belongs to, so that we can set detail ourselves for text, borders, and back/fore colors. Same for the search/address bar that includes the icon SVG.

There seems to be a limited number of UI properties/attributes that are required to be set-able and get-able. A limited number of data properties need to be maintainable, like the table of containers. And the current identity for a tab needs to be get-able.

If we do have access to all required attributes (at the time when they are required), it seems we should be able to create extensions that replace the built-in functionality. Such an extension would need to duplicate the existing container settings functionality. It would require the ability to save a container definition without being forced to comply with the hard-coded list of colors and icons. It might need to disable and replace the Settings button for container tabs.

You see where I'm going with this. Abstract out the concepts of identity and UI updates, implement a default UI update, but fire an event for overrides before rendering. Am I missing anything?

I have never created a FireFox extension but I'm technically able to do so if you confirm our ability to do this all with an extension and no one else steps up.

Thanks.

@adamency

This comment was marked as abuse.

@adamency

This comment was marked as off-topic.

@mozilla mozilla locked as too heated and limited conversation to collaborators Dec 30, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Component: Accessibility Issues related to accessibility Needs: Mozilla Central Needs changes in Mozilla-Central 👍 Feature Request Feature requests users would like to see in this addon
Projects
None yet
Development

No branches or pull requests