Closed Bug 833800 Opened 13 years ago Closed 12 years ago

The pinned site indicator is not visible on dark thumbnails

Categories

(Firefox for Android Graveyard :: General, defect)

21 Branch
ARM
Android
defect
Not set
normal

Tracking

(firefox21 wontfix, firefox22 wontfix, firefox23 wontfix, firefox24 wontfix, firefox25 wontfix, firefox26 verified, firefox27 verified, fennec26+)

VERIFIED FIXED
Firefox 27
Tracking Status
firefox21 --- wontfix
firefox22 --- wontfix
firefox23 --- wontfix
firefox24 --- wontfix
firefox25 --- wontfix
firefox26 --- verified
firefox27 --- verified
fennec 26+ ---

People

(Reporter: xti, Assigned: sriram)

Details

(Whiteboard: [don't uplift until bug 917396 has approval])

Attachments

(5 files, 1 obsolete file)

Attached image screenshot (obsolete) —
Firefox for Android Version: 21.0a1 (2013-01-23) Device: Galaxy R OS: Android 2.3.4 Steps to reproduce: 1. Go to popuptest.com/popuptest1.html 2. Go to about:home and pin the site opened at step 1 Expected result: The pin indicator is visible Actual result: The pin indicator is not visible due to the dark top side of the thumbnail (see attached screenshot)
tracking-fennec: --- → ?
Ian should this icon have a glow around it? Do you have some sort of other idea?
tracking-fennec: ? → +
Flags: needinfo?(ibarlow)
May be we can crop the thumbnail on top right. Or add a small shadow to entire thumbnail.
The original intent was to use a combination of the right grey and the right transparency so that it would show up everywhere. I would suggest adjusting the corner colour here to #666666 and giving it 70% opacity. That'll look something like this, visible on white and also on black: http://cl.ly/image/063J123W433C
Flags: needinfo?(ibarlow)
Saw a complaint about this on Google Play for FxBeta yesterday
Shall we make it orange? It'll be clear. Using opacity would interfere with the thumbnail image anyways.
I think that would just break on orange thumbnails? We need to add a light highlight to it on that one edge.
Attached patch PatchSplinter Review
Attachment #804539 - Flags: review?(wjohnston)
Attached image Screenshot (newer)
Just wanted to see what it looks like in modern times
Attachment #705341 - Attachment is obsolete: true
Comment on attachment 804539 [details] [diff] [review] Patch Review of attachment 804539 [details] [diff] [review]: ----------------------------------------------------------------- Moving to an image here.
Attachment #804539 - Flags: review?(wjohnston)
Attached patch PatchSplinter Review
Attachment #806110 - Flags: review?(wjohnston)
Comment on attachment 806110 [details] [diff] [review] Patch Review of attachment 806110 [details] [diff] [review]: ----------------------------------------------------------------- Nice deleting. ::: mobile/android/base/resources/layout/top_bookmark_item_view.xml @@ +19,2 @@ > android:duplicateParentState="true" > + android:drawablePadding="4dip" Put this in dimen and maybe a style?
Attachment #806110 - Flags: review?(wjohnston) → review+
(In reply to Wesley Johnston (:wesj) from comment #11) > Comment on attachment 806110 [details] [diff] [review] > Patch > > Review of attachment 806110 [details] [diff] [review]: > ----------------------------------------------------------------- > > Nice deleting. > > ::: mobile/android/base/resources/layout/top_bookmark_item_view.xml > @@ +19,2 @@ > > android:duplicateParentState="true" > > + android:drawablePadding="4dip" > > Put this in dimen and maybe a style? This is a one-time use value. Putting it in a style file would involve unnecessary lookups. I feel like having it here.
The earlier calculations didn't account for compound drawables. This patch accounts for it. (Note: This cases is only for pin icon).
Attachment #806123 - Flags: review?(lucasr.at.mozilla)
Comment on attachment 806123 [details] [diff] [review] Patch: Fading in text-view Review of attachment 806123 [details] [diff] [review]: ----------------------------------------------------------------- Nice catch. ::: mobile/android/base/home/FadedTextView.java @@ +56,5 @@ > // Layout doesn't return a proper width for getWidth(). > // Instead check the width of the first line, as we've restricted to just one line. > if (getLayout().getLineWidth(0) > width) { > + final Drawable leftDrawable = getCompoundDrawables()[0]; > + int drawableWidth = 0; nit: I'd reverse the order of lines above: int drawableWidth... final Drawable... @@ +66,1 @@ > int color = getCurrentTextColor(); nit: final
Attachment #806123 - Flags: review?(lucasr.at.mozilla) → review+
Ideally LinearLayout is good. But it doesn't have the third constructor in pre-ICS version. But we dump few things in style which will be used by Android. So, reverting back to RelativeLayout -- "all is well" world.
Attachment #806624 - Flags: review?(margaret.leibovic)
Comment on attachment 806624 [details] [diff] [review] Patch: LinearLayout Looks good, it looks like this just reverts to what we were doing before in TopBookmarkItemView. Out of curiosity, why was this change to a LinearLayout made in your other patch?
Attachment #806624 - Flags: review?(margaret.leibovic) → review+
We had a pin icon sticking on top left. In that case it's better to use a RelativeLayout (saves one ViewGroup in the middle). But then the pin is now a part of the title. So the image and the text can be placed in a vertical LinearLayout. However it didn't help due to Android code.
Setting to track 26, since this is part of the follow-up work to bug 917394.
tracking-fennec: + → 26+
Assignee: nobody → sriram
Status: NEW → RESOLVED
Closed: 12 years ago
Resolution: --- → FIXED
Target Milestone: --- → Firefox 27
Comment on attachment 806110 [details] [diff] [review] Patch [Approval Request Comment] Bug caused by (feature/regressing bug #): Old design. User impact if declined: The pin on top thumbnails is not seen. Testing completed (on m-c, etc.): Landed safely in m-c on 09/20. Risk to taking this patch (and alternatives if risky): No risk. String or IDL/UUID changes made by this patch: None.
Attachment #806110 - Flags: approval-mozilla-aurora?
Comment on attachment 806123 [details] [diff] [review] Patch: Fading in text-view [Approval Request Comment] Bug caused by (feature/regressing bug #): Old design. User impact if declined: The pin on top thumbnails is not seen. Testing completed (on m-c, etc.): Landed safely in m-c on 09/20. Risk to taking this patch (and alternatives if risky): No risk. String or IDL/UUID changes made by this patch: None.
Attachment #806123 - Flags: approval-mozilla-aurora?
Comment on attachment 806624 [details] [diff] [review] Patch: LinearLayout [Approval Request Comment] Bug caused by (feature/regressing bug #): Old design. User impact if declined: The pin on top thumbnails is not seen. Testing completed (on m-c, etc.): Landed safely in m-c on 09/20. Risk to taking this patch (and alternatives if risky): No risk. String or IDL/UUID changes made by this patch: None.
Attachment #806624 - Flags: approval-mozilla-aurora?
Status: RESOLVED → VERIFIED
Attachment #806110 - Flags: approval-mozilla-aurora? → approval-mozilla-aurora+
Attachment #806123 - Flags: approval-mozilla-aurora? → approval-mozilla-aurora+
Attachment #806624 - Flags: approval-mozilla-aurora? → approval-mozilla-aurora+
Depends on bug 917396, which doesn't have approval yet.
Verified fixed on: Firefox 26 Beta 1 (2013-10-26) Device: LG Optimus 4X OS: Android 4.1.2
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: