Closed
Bug 1194033
Opened 11 years ago
Closed 10 years ago
Change color of pressed state for list items in home panels to about_page_header_grey
Categories
(Firefox for Android Graveyard :: General, defect)
Tracking
(firefox47 fixed)
RESOLVED
FIXED
Firefox 47
| Tracking | Status | |
|---|---|---|
| firefox47 | --- | fixed |
People
(Reporter: mcomella, Assigned: zerok60, Mentored)
References
Details
(Whiteboard: [good first bug][lang=java])
Attachments
(1 file, 2 obsolete files)
They're currently #33000000 – does toolbar_grey_pressed sound right, antlam?
Flags: needinfo?(alam)
| Reporter | ||
Comment 1•11 years ago
|
||
They're defined in action_bar_button, fwiw: https://mxr.mozilla.org/mozilla-central/search?string=action_bar_button[^_]®exp=on&find=mobile%2Fandroid&findi=&filter=^[^\0]*%24&hitlimit=&tree=mozilla-central
| Reporter | ||
Comment 2•11 years ago
|
||
Edit cancel too.
Comment 3•11 years ago
|
||
Is this for the Home panels? If so, since it's on "White" this color should actually be our "About page header grey" which is #F5F5F5
Flags: needinfo?(alam)
| Reporter | ||
Updated•11 years ago
|
Summary: Change color of pressed state in list items history and remote tabs to toolbar_grey_pressed → Change color of pressed state in list items history and remote tabs to about_page_header_grey
Updated•10 years ago
|
Assignee: nobody → ally
Updated•10 years ago
|
Assignee: a.m.naaktgeboren → nobody
Updated•10 years ago
|
Mentor: michael.l.comella
Whiteboard: [good first bug][lang=java]
| Assignee | ||
Comment 4•10 years ago
|
||
Changed color of pressed for History and Synced Tabs. Should bookmarks follow the same behavior?
Attachment #8701273 -
Flags: review?(michael.l.comella)
| Reporter | ||
Updated•10 years ago
|
Assignee: nobody → zerok60
| Reporter | ||
Comment 5•10 years ago
|
||
Comment on attachment 8701273 [details] [diff] [review]
Bug 1194033 - Change color of pressed state in list items history and remote tabs to about_page_header_grey r=mcomella.txt
Review of attachment 8701273 [details] [diff] [review]:
-----------------------------------------------------------------
Thanks for the patch!
This looks correct besides the missing file.
::: mobile/android/base/java/org/mozilla/gecko/home/HistoryHeaderListCursorAdapter.java
@@ +21,5 @@
> private static final int ROW_HEADER = 0;
> private static final int ROW_STANDARD = 1;
>
> private static final int[] VIEW_TYPES = new int[] { ROW_STANDARD, ROW_HEADER };
> + private static final int[] LAYOUT_TYPES = new int[] { R.layout.home_history_tab_item, R.layout.home_header_row };
It looks like you didn't `hg add home_history_tab_item.xml` – can you do that, refresh the patch, and reupload?
Attachment #8701273 -
Flags: review?(michael.l.comella) → feedback+
| Assignee | ||
Comment 6•10 years ago
|
||
Added the missing layout file
Attachment #8701273 -
Attachment is obsolete: true
Attachment #8702662 -
Flags: review?(michael.l.comella)
| Reporter | ||
Comment 7•10 years ago
|
||
Comment on attachment 8702662 [details] [diff] [review]
Bug 1194033 - Change color of pressed state in list items history and remote tabs to about_page_header_grey r=mcomella.txt
Review of attachment 8702662 [details] [diff] [review]:
-----------------------------------------------------------------
Actually, looking at this now, I think we should apply this to all of the home panels that use a list rather than just the two listed here. That way, I think you can put your changes into home_item_row.
Sorry for the confusion.
::: mobile/android/services/src/main/res/layout/home_history_tab_item.xml
@@ +3,5 @@
> + - License, v. 2.0. If a copy of the MPL was not distributed with this
> + - file, You can obtain one at http://mozilla.org/MPL/2.0/. -->
> +
> +<org.mozilla.gecko.home.TwoLinePageRow xmlns:android="http://schemas.android.com/apk/res/android"
> + style="@style/Widget.HistoryItemView"
In general, if a style is not re-used, it's best to leave the attributes in the layout file so that devs don't need to do unnecessary lookups into styles.xml and look at confusing inheritance hierarchies.
Attachment #8702662 -
Flags: review?(michael.l.comella) → feedback+
| Reporter | ||
Updated•10 years ago
|
Summary: Change color of pressed state in list items history and remote tabs to about_page_header_grey → Change color of pressed state for list items in home panels to about_page_header_grey
| Assignee | ||
Comment 8•10 years ago
|
||
Alright. I'll be working on this tonight.
| Assignee | ||
Comment 9•10 years ago
|
||
Attachment #8702662 -
Attachment is obsolete: true
Attachment #8705906 -
Flags: review?(michael.l.comella)
| Reporter | ||
Comment 10•10 years ago
|
||
Comment on attachment 8705906 [details] [diff] [review]
Bug 1194033 - Change color of pressed state for list items in home panels to about_page_header_grey. r=mcomella.txt
Review of attachment 8705906 [details] [diff] [review]:
-----------------------------------------------------------------
I apologize for the delay, Angel – I'm caught up in some other work so you can also flag :ahunt for reviews to make sure your reviews get done in a timely manner.
This does not appear to work in a few panels: the Top Sites grid in the Top Sites panel, reading list, and Synced Tabs. Can you make those work as well?
Also, your patch didn't apply cleanly (though I was able to fix it locally) – can you make sure you pull down the latest revision and rebase your patch?
Attachment #8705906 -
Flags: review?(michael.l.comella) → feedback+
| Reporter | ||
Comment 12•10 years ago
|
||
NI self to land.
Flags: needinfo?(zerok60) → needinfo?(michael.l.comella)
| Reporter | ||
Comment 13•10 years ago
|
||
https://hg.mozilla.org/integration/fx-team/rev/aefae03959a33e8e5761e448e7ff6aad0610402e
Bug 1194033 - Added background selector to TwoLinPageRow & removed selector override from RemoteTabsListView r=mcomella
| Reporter | ||
Comment 14•10 years ago
|
||
I rebased the patch and landed it. Thanks for your help, Angel!
Flags: needinfo?(michael.l.comella)
Comment 15•10 years ago
|
||
| bugherder | ||
Status: NEW → RESOLVED
Closed: 10 years ago
status-firefox47:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → Firefox 47
Updated•5 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
•