-
-
Notifications
You must be signed in to change notification settings - Fork 767
feat: Favicons in tabs #2598
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
base: master
Are you sure you want to change the base?
feat: Favicons in tabs #2598
Conversation
-Added favicons in tabs -Added setting toggle for favicons and US localisation
Thanks for opening a PR; there have been enough requests for this that it probably does make sense to do something. The contrast issue has been one of the big reasons for not doing this until now; do you have any thoughts on how to address that? Some possibilities are:
If the favicons are too slow to load, you could look into detecting them from the preload script, rather than relying on the page-favicon-updated event; that might be faster, but I'm not sure. |
I like the screenshot a lot!
This does seem tricky. For a "flat" style favicon with only a few colors, you could probably just sort all the pixels by brightness and pick the median as the threshold. This would totally stop working once you have a favicon with a gradient though. Maybe an alternative would be: put all the pixels in buckets by brightness: [0.00, 0.01, ... 0.99, 1.00]. Look in the range [0.3, 0.7] for a discontinuity, which will be represented as a series of buckets greater than some length with few or no pixels, and make that the white/black threshold.
Right; since they only have a single color they're easy to re-color. But I haven't researched how many sites support them; if usage is low that won't be very useful. One downside to doing recoloring like this is that color is a big part of what makes the favicons quickly recognizable. If you recolor them to black and white, do they still feel useful for identifying tabs? Maybe the favicon setting should be always available, but if tab color is turned on we convert the favicons to black/white, and if it's off we show them in original color. I'm not sure.
I'm not sure about this either :) I'll probably need to try it both ways and see. Also, we probably want to hide the favicons entirely when the tabs become very small. There's an existing |
Description
Added commonly requested option to toggle favicons in tabs.
Open issues covered (note: many duplicates):
#304
#757
#304
#1078
#1974
#1855
Images
No favicons (default):



Favicons:
Settings page:
Known issues