Closed Bug 915923 Opened 12 years ago Closed 11 years ago

Show default app icon when none found

Categories

(DevTools Graveyard :: WebIDE, defect, P3)

defect

Tracking

(Not tracked)

RESOLVED FIXED
Firefox 29

People

(Reporter: jryans, Assigned: mahdi)

Details

(Whiteboard: [good-first-bug][lang=js][mentor=jryans])

Attachments

(1 file, 3 obsolete files)

Right now we're just leaving an empty square where the icon goes if there is no icon or it can't be loaded. We should have a default.
Priority: -- → P3
Note that once you install an app, it gets the default "rocket" icon on device. Perhaps we should show the same in the App Manager?
Whiteboard: [good-first-bug][lang=js][mentor=jryans]
Hey, I'd like to take this. What about using the "rocket.svg"? I've made the patch.
Attachment #8356607 - Flags: review?(jryans)
Assignee: nobody → mdibaiee
Status: NEW → ASSIGNED
Comment on attachment 8356607 [details] [diff] [review] Added rocket.svg as default app icon Review of attachment 8356607 [details] [diff] [review]: ----------------------------------------------------------------- Thanks for looking into this! I've added a few comments below. Once you've resolved them, attach an updated patch and r? me again. Also, in your next patch, make sure the commit message is in the right format[1]. [1]: https://developer.mozilla.org/en-US/docs/Mercurial_FAQ#How_can_I_generate_a_patch_for_somebody_else_to_check-in_for_me.3F ::: browser/devtools/app-manager/content/projects.js @@ +131,5 @@ > icon = manifest.icons[size]; > } > } > if (!icon) > + return "chrome://browser/skin/devtools/app-manager/rocket.svg"; This image is similar to, but not quite the same as, the default icon shown on the device. You can find that here[2] in the Gaia project. I would suggest copying that file into the same folder as this "rocket.svg" file, and probably naming it something like "default-app-icon.png" for clarity. Also, this line has a trailing space at the end, so be sure to remove that next time around. [2]: https://github.com/mozilla-b2g/gaia/blob/master/apps/homescreen/style/images/default@2x.png
Attachment #8356607 - Flags: review?(jryans)
Thanks for your guidance! You were right, but just copying the png file to browser/themes/shared/devtools/app-manager wasn't enough, the build ignored the file, I had to edit the "jar.mn" files and add the file to list, so it's included in build.
Attachment #8357267 - Flags: review?(jryans)
Comment on attachment 8357267 [details] [diff] [review] Added default icon for apps with no icon Review of attachment 8357267 [details] [diff] [review]: ----------------------------------------------------------------- Looks great, good work! :) r+ assuming you address my comment below. Once you've uploaded a revised patch, you can mark that one r+ yourself. Usually we'd run this on our try server to see if there were test failures, but there aren't tests for this sort of change. So, after all that, add "checkin-needed" to this bug's "keywords" field, and someone will check in the patch for you. Thanks again! ::: browser/themes/windows/jar.mn @@ +294,5 @@ > skin/classic/browser/devtools/app-manager/add.svg (../shared/devtools/app-manager/images/add.svg) > skin/classic/browser/devtools/app-manager/index-icons.svg (../shared/devtools/app-manager/images/index-icons.svg) > skin/classic/browser/devtools/app-manager/rocket.svg (../shared/devtools/app-manager/images/rocket.svg) > skin/classic/browser/devtools/app-manager/noise.png (../shared/devtools/app-manager/images/noise.png) > + skin/classic/browser/devtools/app-manager/default-app-icon.png (../shared/devtools/app-manager/images/default-app-icon.png) The Windows jar.mn actually has two sections to update, this one for "classic" and another for "aero", so you'll need to add this to both places. Search for other app-manager images, and you'll see what I mean.
Attachment #8357267 - Flags: review?(jryans) → review+
Thanks for mentoring me on my first bug! I learned a lot, hopefully I can contribute on more bugs.
Attachment #8357267 - Attachment is obsolete: true
Attachment #8357497 - Flags: review+
Forgot that empty line
Attachment #8357497 - Attachment is obsolete: true
Attachment #8357502 - Flags: review+
Keywords: checkin-needed
Keywords: checkin-needed
Whiteboard: [good-first-bug][lang=js][mentor=jryans] → [good-first-bug][lang=js][mentor=jryans][fixed-in-fx-team]
Status: ASSIGNED → RESOLVED
Closed: 11 years ago
Resolution: --- → FIXED
Whiteboard: [good-first-bug][lang=js][mentor=jryans][fixed-in-fx-team] → [good-first-bug][lang=js][mentor=jryans]
Target Milestone: --- → Firefox 29
Product: Firefox → DevTools
Product: DevTools → DevTools Graveyard
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: