Closed
Bug 1159256
Opened 10 years ago
Closed 10 years ago
720p Task Switcher App Icon Renders Aliased
Categories
(Firefox OS Graveyard :: Gaia::System::Task Manager, defect)
Firefox OS Graveyard
Gaia::System::Task Manager
Tracking
(Not tracked)
RESOLVED
FIXED
People
(Reporter: padamczyk, Assigned: kgrandon)
References
Details
(Keywords: polish, Whiteboard: [systemsfe])
Attachments
(2 files)
The rendering of the app icons in the task switcher looks really rough / pixely / aliased.
| Assignee | ||
Comment 1•10 years ago
|
||
I think we need to update the icon select code here: https://github.com/mozilla-b2g/gaia/blob/master/apps/system/js/cards_helper.js#L21
We could possibly use the same strategy that we use for home screens: https://github.com/mozilla-b2g/gaia/blob/master/shared/elements/gaia_grid/js/items/grid_item.js#L226
| Assignee | ||
Comment 2•10 years ago
|
||
I looked and I think we're just loading in *too* big of an image.
On a Z3 we render the icon at 4rem * 3.0 DPI = 120px.
We're currently selecting the largest image we have, which is the 284px image, instead of something a little more sane like 126px.
Should be a fairly simple fix.
Assignee: nobody → kgrandon
Status: NEW → ASSIGNED
| Assignee | ||
Updated•10 years ago
|
Whiteboard: [systemsfe]
| Assignee | ||
Comment 3•10 years ago
|
||
The identification overlay also has problems, expecting to render at 6rem * 3.0 DPI = 180. Instead of loading the 284px icon, we should probably load the 189px icon.
Comment 4•10 years ago
|
||
| Assignee | ||
Comment 5•10 years ago
|
||
Comment on attachment 8598920 [details] [review]
[gaia] KevinGrandon:bug_1159256_card_icon_sizing > mozilla-b2g:master
Sam or Alive - either of you have time for a review? Thanks!
Attachment #8598920 -
Flags: review?(sfoster)
Attachment #8598920 -
Flags: review?(alive)
Comment 6•10 years ago
|
||
Comment on attachment 8598920 [details] [review]
[gaia] KevinGrandon:bug_1159256_card_icon_sizing > mozilla-b2g:master
I hope Sam review this :)
Attachment #8598920 -
Flags: review?(alive)
Comment 7•10 years ago
|
||
Comment on attachment 8598920 [details] [review]
[gaia] KevinGrandon:bug_1159256_card_icon_sizing > mozilla-b2g:master
R+ with a unit test for the CardsHelper.getIconURIForApp changes, and the size <= vs size < nit I noted in the PR.
Thanks for the clean up in there also. I know Alive wants to get rid of this helper eventually - its a leftover from when I was refactoring the old card view - that should be pretty trivial at this point.
Attachment #8598920 -
Flags: review?(sfoster) → review+
| Assignee | ||
Comment 8•10 years ago
|
||
(In reply to Sam Foster [:sfoster] from comment #7)
> Comment on attachment 8598920 [details] [review]
> [gaia] KevinGrandon:bug_1159256_card_icon_sizing > mozilla-b2g:master
>
> R+ with a unit test for the CardsHelper.getIconURIForApp changes, and the
> size <= vs size < nit I noted in the PR.
I replied on github why I think the current implementation is correct. Let me know if you think that's incorrect.
Keywords: checkin-needed
Updated•10 years ago
|
Keywords: checkin-needed
Comment 9•10 years ago
|
||
http://docs.taskcluster.net/tools/task-graph-inspector/#Zzc7Sa8NRUCMjH1PytuvkA
The pull request failed to pass integration tests. It could not be landed, please try again.
| Assignee | ||
Comment 10•10 years ago
|
||
Possible taskcluster issues, trying again.
Keywords: checkin-needed
Updated•10 years ago
|
Keywords: checkin-needed
| Assignee | ||
Comment 11•10 years ago
|
||
Trying again now that TC issues seem resolved.
Keywords: checkin-needed
Updated•10 years ago
|
Keywords: checkin-needed
Comment 12•10 years ago
|
||
Pull request has landed in master: https://github.com/mozilla-b2g/gaia/commit/c3308bcf82e7d1e6ce3f16afbd26d78d6b129437
Updated•10 years ago
|
Status: ASSIGNED → RESOLVED
Closed: 10 years ago
Resolution: --- → FIXED
Comment 13•10 years ago
|
||
> > R+ with a unit test for the CardsHelper.getIconURIForApp changes, and the
> > size <= vs size < nit I noted in the PR.
>
> I replied on github why I think the current implementation is correct. Let
> me know if you think that's incorrect.
Ok yeah I follow now, thanks for the clarification. Maybe the logic could be clearer with explicit if/else in the loop, but its fine as-is IMO. A unit test would do a better job anyhow of conveying and confirming how its supposed to work. I've filed bug 1160202 for that.
You need to log in
before you can comment on or make changes to this bug.
Description
•