Closed Bug 1147112 Opened 9 years ago Closed 9 years ago

Add doorhanger icons

Categories

(Firefox for Android Graveyard :: General, defect)

ARM
Android
defect
Not set
normal

Tracking

(firefox42 verified, firefox43 verified)

RESOLVED FIXED
Firefox 42
Tracking Status
firefox42 --- verified
firefox43 --- verified

People

(Reporter: liuche, Assigned: liuche)

References

Details

Attachments

(7 files)

Need some resources from Anthony. This can optionally include the refactor that will abstract out the doorhanger resource that will just hold Icon, Content, and Buttons!
Flags: needinfo?(alam)
Are these the icons that are in the 60dp container _inside_ each of the doorhangers?
Flags: needinfo?(liuche)
Yep!
Flags: needinfo?(liuche)
Hmm, I'm not sure where this should be set - there is a single location for doorhanger icons now, but we will need to differentiate between doorhangers somehow. Gecko obviously shouldn't know about this, so perhaps we can pass a type to Java, and let Java handle setting the icon.
I saw these icons with my eyeballs. They exist.
antlam, to start with, let's try these icons for these doorhangers (or some subset of them):
- Geolocation
- (update, or as is) Site Identity
- (update, or as is) Tracking protection
- Voice input (like Firefox Hello)
Attached file icon_pack1.zip
Here's the first pack. It includes:

 - Geolocation (pin)
 - Secure site (green lock)
 - Tracking protection (updated)
 - Site ID (globe)

Missing: 
 - Media (video, audio, Firefox Hello etc)
Flags: needinfo?(alam) → needinfo?(liuche)
Flags: needinfo?(liuche)
Tracking protection icon has changed, so need the updated icon for that.
Flags: needinfo?(alam)
^ that is already the updated TP apparently! (well done past me!)

But, I need to get you one with the "strike" through it.
Attached file icon_notTP.zip
Give these a try and see how they look. Icons for "not" Tracking protected.
Flags: needinfo?(alam)
Blocks: tp-v1
Assignee: nobody → liuche
Status: NEW → ASSIGNED
Antlam: we already seem to have a light globe icon in the tree (tab_panel_tab_globe http://mxr.mozilla.org/mozilla-central/source/mobile/android/base/resources/drawable-hdpi/tab_panel_tab_globe.png ). Should I replace that, use that, or just add a third globe icon? (There is also already a dark globe: http://mxr.mozilla.org/mozilla-central/source/mobile/android/base/resources/drawable-hdpi/favicon_globe.png )
Flags: needinfo?(alam)
Also, maybe we want to add a new lock_verified too? http://mxr.mozilla.org/mozilla-central/source/mobile/android/base/resources/drawable-hdpi/lock_verified.png

It's used in the same place as lock_identified, which we're updating in this bug.
Attached image Screenshot: Geolocation
This is the new geolocation doorhanger, with the icon. Our checkbox looks kind of weird, and the string is a little too long to not wrap (it truncates if we force singleLine).

Any thoughts on this? I'm also happy to leave Geolocation out of this set of icon changes.
Attachment #8632386 - Flags: feedback?(alam)
Comment on attachment 8632386 [details]
Screenshot: Geolocation

Yeah, I think you're right. Is this icon the right size? It looks a bit big as well. 

I can spec out how the line wraps for the "don't ask again for this site" string.
Attachment #8632386 - Flags: feedback?(alam) → feedback-
The icon is is the same size as the other icons in the pack, with the same padding. Here's the lock icon for comparison. Maybe the icons are bigger than, say, the key icon?
Flags: needinfo?(alam)
(In reply to Chenxia Liu [:liuche] from comment #14)
> Created attachment 8633002 [details]
> Screenshot: Encrypted lock icon in Doorhanger
> 
> The icon is is the same size as the other icons in the pack, with the same
> padding. Here's the lock icon for comparison. Maybe the icons are bigger
> than, say, the key icon?

Yeah that's definitely too big. It also looks like some upsizing is happening.. is it centered in a 60 dp square thats padding 20dp from the top and 10dp from the left?
Flags: needinfo?(liuche)
Flags: needinfo?(liuche)
Okay, I adjusted the padding and made the doorhangers not upscale the image anymore - how does this look?
Attachment #8633155 - Flags: feedback?(alam)
Comment on attachment 8633155 [details]
Screenshot: Geolocation v2

much better! + for icons!

Can we try to left align the check box with the left edge of "Share your location with www.google.com?"
Attachment #8633155 - Flags: feedback?(alam) → feedback+
^ Nevermind, spoke about this on IRC. WFM for now!
url:        https://hg.mozilla.org/integration/fx-team/rev/f885136e35b35305a82aa1fe60f7b03b74b20404
changeset:  f885136e35b35305a82aa1fe60f7b03b74b20404
user:       Chenxia Liu <liuche@mozilla.com>
date:       Thu Jul 09 18:46:37 2015 -0700
description:
Bug 1147112 - Add doorhanger icons. r=ally
The review for this is in bug 1175972, blame it on reviewboard.
https://hg.mozilla.org/mozilla-central/rev/f885136e35b3
Status: ASSIGNED → RESOLVED
Closed: 9 years ago
Resolution: --- → FIXED
Target Milestone: --- → Firefox 42
Verified as fixed using:
Device: Nexus 7 (Android 5.1)
Builds: Firefox for Android 43.0a1 (2015-09-15) and Firefox for Android 42.0a1 (2015-09-15)
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: