Closed Bug 1299524 Opened 8 years ago Closed 8 years ago

Tweak favicon appearance in Activity Stream topsites

Categories

(Firefox for Android Graveyard :: Awesomescreen, defect, P1)

defect

Tracking

(firefox51 fixed)

RESOLVED FIXED
Firefox 51
Tracking Status
firefox51 --- fixed

People

(Reporter: ahunt, Assigned: ahunt)

References

Details

(Whiteboard: [MobileAS])

Attachments

(4 files)

To match the topsites design, a few adjustments are needed, probably within FaviconView: - No rounded corners (CardView will round the upper corners for us, the bottom should be completely flat). - Avoid upscaling generated favicons: we seem to make generated favicon 2x size if the FaviconView is larger than expected. - Ensure generated favicons gave a background (this might happen automatically with sebastian's Favicon improvements in Bug 1290014) Possibly also worthwhile: - investigate why we get white as the dominant colour (i.e. background colour) for the BBC and NZZ icons, where are mostly black.
I'm planning to wait for Bug 1290014 to land before looking into this (I do have a few hacky patches for some of the issues locally - but it's likely most of them conflict with the code in Bug 1290014).
Assignee: nobody → ahunt
Depends on: 1290014
Whiteboard: [MobileAS]
(In reply to Andrzej Hunt :ahunt from comment #0) > Possibly also worthwhile: > - investigate why we get white as the dominant colour (i.e. background > colour) for the BBC and NZZ icons, where are mostly black. One reason could be that we treat black (0) as "no dominant color" afaik.
Priority: -- → P3
Attached image topsites_icons.png
This is a screenshot of some top sites pages with the new icon code. Colors are fixed and scaling looks better too.
Priority: P3 → P2
Attached image preview_favicons.png
I've started playing with both the sizing, and dominant colour processing: I'm wondering whether we should consider increasing the default favicon caching size to fill more of the topsites view. I've also managed to improve handling for black favicons. I've attached a screenshot with larger icons: in some cases making the icon fill the view would be ideal (facebook), in other cases making the icon smaller is better. In some cases not fading the background colour is better (e.g. facebook), in some cases it seems to be worse (spiegel). I'm going to experiment with some further algorithms: maybe if there's one dominant border colour we can use that for the background (no fading), if there are multiple colours we could fade instead? (The new favicon code is great btw, icons actually appear reliably!)
Priority: P2 → P1
Status: NEW → ASSIGNED
I'll leave the favicon code for now, the use of Palette has improved handling quite a bit - this is something we could always revisit in future, but it seems like premature optimisation to spend too much time on this right now while we're still implementing basic functionality.
Comment on attachment 8788550 [details] Bug 1299524 - Allow disabling FaviconView corner rounding via enableRoundCorners attribute https://reviewboard.mozilla.org/r/77002/#review75158
Attachment #8788550 - Flags: review?(s.kaspari) → review+
Comment on attachment 8788551 [details] Bug 1299524 - Disable FaviconView corner rounding in Activity Stream topsites https://reviewboard.mozilla.org/r/77004/#review75160
Attachment #8788551 - Flags: review?(s.kaspari) → review+
Pushed by ahunt@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/ae2cab55008a Allow disabling FaviconView corner rounding via enableRoundCorners attribute r=sebastian https://hg.mozilla.org/integration/autoland/rev/f14745862e04 Disable FaviconView corner rounding in Activity Stream topsites r=sebastian
Status: ASSIGNED → RESOLVED
Closed: 8 years ago
Resolution: --- → FIXED
Target Milestone: --- → Firefox 51
Iteration: --- → 1.4
Product: Firefox for Android → Firefox for Android Graveyard
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: