Closed
Bug 915923
Opened 12 years ago
Closed 11 years ago
Show default app icon when none found
Categories
(DevTools Graveyard :: WebIDE, defect, P3)
DevTools Graveyard
WebIDE
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)
|
14.05 KB,
patch
|
mahdi
:
review+
|
Details | Diff | Splinter Review |
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.
Updated•12 years ago
|
Priority: -- → P3
| Reporter | ||
Comment 1•11 years ago
|
||
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?
| Reporter | ||
Updated•11 years ago
|
Whiteboard: [good-first-bug][lang=js][mentor=jryans]
| Assignee | ||
Comment 2•11 years ago
|
||
Hey, I'd like to take this.
What about using the "rocket.svg"? I've made the patch.
| Assignee | ||
Comment 3•11 years ago
|
||
Attachment #8356607 -
Flags: review?(jryans)
| Reporter | ||
Updated•11 years ago
|
Assignee: nobody → mdibaiee
Status: NEW → ASSIGNED
| Reporter | ||
Comment 4•11 years ago
|
||
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)
| Assignee | ||
Comment 5•11 years ago
|
||
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.
| Assignee | ||
Comment 6•11 years ago
|
||
Attachment #8357267 -
Flags: review?(jryans)
| Reporter | ||
Updated•11 years ago
|
Attachment #8356607 -
Attachment is obsolete: true
| Reporter | ||
Comment 7•11 years ago
|
||
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+
| Assignee | ||
Comment 8•11 years ago
|
||
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+
| Assignee | ||
Comment 9•11 years ago
|
||
Forgot that empty line
Attachment #8357497 -
Attachment is obsolete: true
Attachment #8357502 -
Flags: review+
| Assignee | ||
Updated•11 years ago
|
Keywords: checkin-needed
Comment 10•11 years ago
|
||
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
Updated•7 years ago
|
Product: Firefox → DevTools
Updated•5 years ago
|
Product: DevTools → DevTools Graveyard
You need to log in
before you can comment on or make changes to this bug.
Description
•