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)
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.
Reporter | ||
Comment 1•10 years ago
|
||
(as per bug 1000149 comment 29)
Assignee: nobody → michael.l.comella
Status: NEW → ASSIGNED
Reporter | ||
Updated•9 years ago
|
Assignee: michael.l.comella → nobody
Mentor: michael.l.comella, mhaigh
Whiteboard: [lang=java][good third bug]
Reporter | ||
Comment 2•9 years ago
|
||
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.
Reporter | ||
Comment 3•9 years ago
|
||
e.g. https://mxr.mozilla.org/mozilla-central/source/mobile/android/base/resources/drawable-large-xhdpi-v11/url_bar_entry_default.9.png
Comment 4•9 years ago
|
||
Hey Anthony! mfinkle suggested that you could help with the new images Thanks :)
Flags: needinfo?(alam)
Reporter | ||
Updated•9 years ago
|
Flags: needinfo?(michael.l.comella)
Reporter | ||
Comment 5•9 years ago
|
||
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
Comment 6•9 years ago
|
||
Hey Michael! No problem. I would be happy to help whenever the need be :)
Comment 7•9 years ago
|
||
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)
Reporter | ||
Comment 8•9 years ago
|
||
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.
Reporter | ||
Comment 9•9 years ago
|
||
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)
Reporter | ||
Updated•9 years ago
|
Assignee: nobody → prabhjyotsingh95
Flags: needinfo?(prabhjyotsingh95)
Comment 10•9 years ago
|
||
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)
Reporter | ||
Comment 11•9 years ago
|
||
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
Reporter | ||
Comment 12•9 years ago
|
||
Reporter | ||
Comment 13•9 years ago
|
||
https://mail.mozilla.org/pipermail/mobile-firefox-dev/2015-February/001090.html
Whiteboard: [lang=java][good third bug] → [lang=java][good next bug]
Comment 14•9 years ago
|
||
Hey Michael! I am kinda busy with with my college proceedings! I will get back to this asap :)
Reporter | ||
Comment 15•9 years ago
|
||
Okay, thanks for getting back to me.
Comment 16•9 years ago
|
||
Hey Hey! will have to do this manually, I think
Comment 17•9 years ago
|
||
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
Reporter | ||
Comment 18•9 years ago
|
||
(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.
Reporter | ||
Comment 19•9 years ago
|
||
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)
Comment 20•9 years ago
|
||
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)
Updated•9 years ago
|
Assignee: prabhjyotsingh95 → nobody
Status: ASSIGNED → NEW
Reporter | ||
Comment 21•8 years ago
|
||
This will be fixed in due time if it's important.
Status: NEW → RESOLVED
Closed: 8 years ago
Resolution: --- → WORKSFORME
Updated•3 years ago
|
Product: Firefox for Android → Firefox for Android Graveyard
You need to log in
before you can comment on or make changes to this bug.
Description
•