Closed Bug 1001435 Opened 10 years ago Closed 8 years ago

Remove horizontal whitespace from url_bar_entry drawables

Categories

(Firefox for Android Graveyard :: Awesomescreen, defect)

All
Android
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED WORKSFORME

People

(Reporter: mcomella, Unassigned, Mentored)

References

Details

(Whiteboard: [lang=java][good next bug])

Attachments

(2 files, 1 obsolete file)

Otherwise we have to compensate with code.
(as per bug 1000149 comment 29)
Assignee: nobody → michael.l.comella
Status: NEW → ASSIGNED
Assignee: michael.l.comella → nobody
Mentor: michael.l.comella, mhaigh
Whiteboard: [lang=java][good third bug]
The files to change are .../m/a/b/resources/drawable*/url_bar_entry_*.png. Remove the padding without distorting the image content (I recommend using image magick) and then add padding to the appropriate views in XML to compensate for the padding removed from the image.
Hey Anthony!
mfinkle suggested that you could help with the new images
Thanks :)
Flags: needinfo?(alam)
Flags: needinfo?(michael.l.comella)
Hey, Prabhjyot. I just wanted to let you know that removing the whitespace from these assets is turning out to be more complicated than I initially thought - I'm not sure the specifics of how whitespace works with regards to nine patches (if you're curious [1]) - we'll get back to you ASAP!

[1]: https://developer.android.com/guide/topics/graphics/2d-graphics.html#nine-patch
Hey Michael!
No problem. I would be happy to help whenever the need be :)
Attached file 9 patch experiment.zip (obsolete) —
Hey guys, I've removed the empty space on all sides. These are the assets for the phone UI. Maybe we can give this a try and see how it goes before I prep the Tablet UI stuff. 

Let me know how it goes!
Flags: needinfo?(alam)
Hey, Prabhjyot - we're still trying to figure out some details on how we're going to use these assets so I'll give you the word when we're ready to go.
Okay, Prabhjyot - sorry for the wait! I ran a utility called trimage over the images to reduce their sizes and have uploaded the result - let me know if there's anything wrong with the archive you receive.

Your mission is to replace the associated resources we currently have in mobile/android/base/resources/ with these assets, and then ensure that the toolbar is 32 dp tall, 245 dp wide when collapsed, and 304 dp wide when expanded.

We'll work on tablet once we get the phone working properly.

Ready? Go!
Attachment #8552579 - Attachment is obsolete: true
Flags: needinfo?(michael.l.comella)
Assignee: nobody → prabhjyotsingh95
Flags: needinfo?(prabhjyotsingh95)
Hey!
For this patch,
say for the first file 'urlbar_active_hdpi.9.png' in the attachment given by you
I'll open mobile/android/base/drawable-hdpi/ where I find 
url_bar_entry_pressed.9.png
and hg remove it and replace it by the first file in the attachment ( and also rename this file before doing hg add to it)
and repeat for all files.
Is this supposed to be done?
Flags: needinfo?(prabhjyotsingh95)
Right!

I recommend using a script to simplify this process. If you're using zsh (on different files), for example:

  for i in {m,h,xh,xxh}; do pushd drawable-${i}dpi/ && mv ~/dl/sb/b3/icon_bookmark_${i}dpi.png new_tablet_ic_menu_bookmark_add.png; popd; done
Hey Michael!
I am kinda busy with with my college proceedings!
I will get back to this asap :)
Okay, thanks for getting back to me.
Hey Hey!
will have to do this manually, I think
Hey mcomella,
I think I will have to do this manually, or maybe write a script that changes the filenames to the ones already present, and then use the script that you were suggesting[1]
Any thoughts?

[1]: https://bugzilla.mozilla.org/show_bug.cgi?id=1001435#c11
(In reply to Prabhjyot Sodhi [:psd] from comment #17)
> I think I will have to do this manually,

While it'd work, this is a bit tedious and time-consuming.

> or maybe write a script that changes the filenames to the ones already present,
> and then use the script that you were suggesting[1]
> Any thoughts?

My script changes the filenames to the ones present, provided you swap out the arguments correctly. Do you understand what it is doing?

By the way, you can add me to the "Need more information from" box below the comment box so I get a notification and am more likely to see your questions.
Still interested in this one, Prabhjyot? If not, no worries - I just want to open this up for someone else if possible.
Flags: needinfo?(prabhjyotsingh95)
Sorry for blocking this all this while. I'll unblock it for now and probably take a stab at it after I am done with that other bug :)
Flags: needinfo?(prabhjyotsingh95)
Assignee: prabhjyotsingh95 → nobody
Status: ASSIGNED → NEW
This will be fixed in due time if it's important.
Status: NEW → RESOLVED
Closed: 8 years ago
Resolution: --- → WORKSFORME
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: