Closed Bug 715272 Opened 13 years ago Closed 12 years ago

[ICS] On about:home, add padding to thumbnail selection highlight

Categories

(Firefox for Android Graveyard :: General, defect, P3)

x86
macOS
defect

Tracking

(firefox15 verified, blocking-fennec1.0 soft, fennec11+)

VERIFIED FIXED
Firefox 14
Tracking Status
firefox15 --- verified
blocking-fennec1.0 --- soft
fennec 11+ ---

People

(Reporter: ibarlow, Assigned: sriram)

References

Details

(Keywords: polish, uiwanted)

Attachments

(2 files, 3 obsolete files)

There should be a wider selection highlight around the thumbnail and text in Top Sites. Gingerbread phones show this correctly, but the Galaxy Nexus only shows a tiny border right now.
Priority: -- → P3
tracking-fennec: --- → 11+
Assignee: nobody → sriram
Ian, Could you please share spec for this?
Keywords: uiwanted
Sriram, the correct selection border around the thumbnail should be 

Top 5dip
Right 5dip
Bottom 20dip (to include title)
Left 5dip
Attached patch WIP (obsolete) — Splinter Review
I changed it to RelativeLayout to reduce the number of draws. I reused resources from tabs-tray. If the shadow is fine in this, we can remove abouthome_topsite_shadow resources.
Attachment #593648 - Flags: review?(mark.finkle)
Attached image Screenshot: Padding (obsolete) —
Is the padding in this fine? I am still not happy with the font-size of the thumbnail. It's currently 9dip (which is less than "sp"). And the recommended small size is 12sp I guess.
Comment on attachment 593648 [details] [diff] [review]
WIP

Did you do some testing on different devices and portrait/landscape rotations? I just want to make sure the relative layout is robust enough to handle different layout changes.
Hi Sriram, couple things:

1. You need some padding on the top of your selection, it's getting cut off right now

2. I agree that font is too small, it seems like this might be related to bug 715259, where type and graphics aren't being scaled up appropriately based on their screen density. Ping me in IRC today if you'd like to chat about it some more.
Comment on attachment 593648 [details] [diff] [review]
WIP

This r+ is given as long as you tested this patch on multiple devices and portrait/landscape.

Also, if this patch was bitrotted a lot, post a new patch for a quick review.
Attachment #593648 - Flags: review?(mark.finkle) → review+
Comment on attachment 593648 [details] [diff] [review]
WIP

I just saw Ian's feedback on the screenshot. Please address that as well and post a new patch and screenshot.
Attachment #593648 - Flags: review+ → review-
Soft blocking nom?

I think we're almost done here, so let's tie this off.
blocking-fennec1.0: --- → ?
blocking-fennec1.0: ? → soft
Attached patch PatchSplinter Review
This patch has the required changes (and is "bit-trolled" ;) )
It's pretty much the same as in tabs_row.xml.

The only thing that is still confusing me that there is a 1px padding around the edges of thumbnails. I couldn't figure out why the thumbnail is different between tabs and in db. By "grep" for "136" failed me. :(
Attachment #593648 - Attachment is obsolete: true
Attachment #615449 - Flags: review?(mark.finkle)
Attached image Screenshot: Padding (obsolete) —
Screenshot of the padding after the patch is applied.
Attachment #593650 - Attachment is obsolete: true
Attached image Screenshot: Padding
Attachment #615450 - Attachment is obsolete: true
Comment on attachment 615449 [details] [diff] [review]
Patch

What affect does this have on non-ICS phones. Test it out and report back please.
Attachment #615449 - Flags: review?(mark.finkle) → review+
As the changes are common for both ICS and non-ICS versions, the padding fix applies there too. This works fine on Galaxy SII running Gingerbread.
Comment on attachment 615449 [details] [diff] [review]
Patch

Thank you for checking. Clear to land.
Attachment #615449 - Flags: approval-mozilla-central+
https://hg.mozilla.org/mozilla-central/rev/d585de9a3103
Status: NEW → RESOLVED
Closed: 12 years ago
Resolution: --- → FIXED
Target Milestone: --- → Firefox 14
Verified fixed on:

Firefox 15.0a1 (2012-05-22)
Device: Galaxy Nexus
OS: Android 4.0.2
Status: RESOLVED → VERIFIED
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: