Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(21)

Issue 2365733002: Inherit default text color from MainTheme. (Closed)

Created:
4 years, 3 months ago by bhallam
Modified:
4 years, 2 months ago
Reviewers:
gone
CC:
chromium-reviews, asanka, gcasto+watchlist_chromium.org, vabr+watchlistpasswordmanager_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Inherit default text color from parent themes. This change removes default_text_color being hard-coded in ui components everywhere. Most controls are created as part of the their parent Themes (MainTheme and DownloadsActivityTheme for this cl) they will automatically get android:textColor set to default_text_color. BUG=654062 Committed: https://crrev.com/e4f0a51143b3db3643b7bac31d0be4d08642fe4e Cr-Commit-Position: refs/heads/master@{#424599}

Patch Set 1 #

Patch Set 2 : Updated CL with android:textColor added through DownloadsActivityTheme as well as reusing style/Pay… #

Total comments: 1

Patch Set 3 : Updating default_text_color to #000000 and point to chromium issue 654062 #

Total comments: 10

Patch Set 4 : Addressing nits and perf hit while querying for color resource when it may not even be used. #

Total comments: 2

Patch Set 5 : swapping out @ColorRes and @ColorInt usage in code. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+21 lines, -53 lines) Patch
M chrome/android/java/res/layout/account_chooser_dialog_item.xml View 1 chunk +0 lines, -1 line 0 comments Download
M chrome/android/java/res/layout/account_chooser_dialog_title.xml View 2 chunks +1 line, -3 lines 0 comments Download
M chrome/android/java/res/layout/account_signin_account_view.xml View 1 chunk +0 lines, -1 line 0 comments Download
M chrome/android/java/res/layout/account_signin_view.xml View 5 chunks +0 lines, -5 lines 0 comments Download
M chrome/android/java/res/layout/bookmark_row_content.xml View 1 chunk +0 lines, -1 line 0 comments Download
M chrome/android/java/res/layout/bookmark_widget_item.xml View 1 chunk +0 lines, -1 line 0 comments Download
M chrome/android/java/res/layout/data_reduction_promo_screen.xml View 1 chunk +0 lines, -1 line 0 comments Download
M chrome/android/java/res/layout/download_item_view.xml View 1 chunk +0 lines, -1 line 0 comments Download
M chrome/android/java/res/layout/download_manager_ui_drawer_filter.xml View 1 chunk +0 lines, -1 line 0 comments Download
M chrome/android/java/res/layout/infobar_control_icon_with_description.xml View 1 chunk +1 line, -2 lines 0 comments Download
M chrome/android/java/res/layout/infobar_control_message.xml View 1 chunk +0 lines, -1 line 0 comments Download
M chrome/android/java/res/layout/infobar_control_spinner_view.xml View 1 chunk +0 lines, -1 line 0 comments Download
M chrome/android/java/res/layout/infobar_control_toggle.xml View 1 chunk +1 line, -2 lines 0 comments Download
M chrome/android/java/res/layout/password_entry_editor_interactive.xml View 3 chunks +0 lines, -3 lines 0 comments Download
M chrome/android/java/res/layout/password_generation_popup_suggestion.xml View 2 chunks +0 lines, -2 lines 0 comments Download
M chrome/android/java/res/layout/payment_request_header.xml View 1 1 chunk +1 line, -2 lines 0 comments Download
M chrome/android/java/res/layout/signin_and_sync_view.xml View 2 chunks +0 lines, -2 lines 0 comments Download
M chrome/android/java/res/layout/tab_switcher_callout.xml View 1 chunk +1 line, -2 lines 0 comments Download
M chrome/android/java/res/layout/upgrade_activity.xml View 1 chunk +1 line, -2 lines 0 comments Download
M chrome/android/java/res/values-v17/styles.xml View 1 2 3 2 chunks +2 lines, -0 lines 0 comments Download
M chrome/android/java/res/values/colors.xml View 1 2 1 chunk +1 line, -1 line 0 comments Download
M chrome/android/java/src/org/chromium/chrome/browser/ItemChooserDialog.java View 1 2 3 4 4 chunks +12 lines, -11 lines 0 comments Download
M chrome/android/java/src/org/chromium/chrome/browser/contextmenu/ContextMenuTitleView.java View 2 chunks +0 lines, -5 lines 0 comments Download
M chrome/android/java/src/org/chromium/chrome/browser/download/ui/FilterAdapter.java View 1 chunk +0 lines, -2 lines 0 comments Download

Messages

Total messages: 22 (7 generated)
gone
Have you tested all the places where this blanket change takes effect? Downloads and Payments ...
4 years, 2 months ago (2016-09-27 17:32:39 UTC) #3
bhallam
On 2016/09/27 17:32:39, dfalcantara (slow) wrote: > Have you tested all the places where this ...
4 years, 2 months ago (2016-09-28 01:51:54 UTC) #5
gone
Yeah, the color difference is (annoyingly) subtle, but there (yay black versus not-entirely black). At ...
4 years, 2 months ago (2016-09-30 00:11:22 UTC) #6
bhallam
On 2016/09/30 00:11:22, dfalcantara (slow) wrote: > Yeah, the color difference is (annoyingly) subtle, but ...
4 years, 2 months ago (2016-10-04 18:03:11 UTC) #7
gone
Yeah, didn't take long to spot unintentional side effects from your change. I filed 654062 ...
4 years, 2 months ago (2016-10-07 21:42:17 UTC) #8
gone
Er, intentional side effects, I guess? I still don't think it makes a huge difference, ...
4 years, 2 months ago (2016-10-07 22:05:48 UTC) #9
bhallam
On 2016/10/07 22:05:48, dfalcantara wrote: > Er, intentional side effects, I guess? I still don't ...
4 years, 2 months ago (2016-10-07 22:39:18 UTC) #10
gone
Yeah, thanks for looking into this. A few years ago, we had a different internal ...
4 years, 2 months ago (2016-10-10 18:22:55 UTC) #12
bhallam
Hi dfalcantara I am addressing all your nits and concerns in the next revision to ...
4 years, 2 months ago (2016-10-11 02:15:19 UTC) #13
gone
https://codereview.chromium.org/2365733002/diff/60001/chrome/android/java/src/org/chromium/chrome/browser/ItemChooserDialog.java File chrome/android/java/src/org/chromium/chrome/browser/ItemChooserDialog.java (right): https://codereview.chromium.org/2365733002/diff/60001/chrome/android/java/src/org/chromium/chrome/browser/ItemChooserDialog.java#newcode288 chrome/android/java/src/org/chromium/chrome/browser/ItemChooserDialog.java:288: @ColorInt final int textColorId = isEnabled(position) You set the ...
4 years, 2 months ago (2016-10-11 19:53:50 UTC) #14
bhallam
https://codereview.chromium.org/2365733002/diff/60001/chrome/android/java/src/org/chromium/chrome/browser/ItemChooserDialog.java File chrome/android/java/src/org/chromium/chrome/browser/ItemChooserDialog.java (right): https://codereview.chromium.org/2365733002/diff/60001/chrome/android/java/src/org/chromium/chrome/browser/ItemChooserDialog.java#newcode288 chrome/android/java/src/org/chromium/chrome/browser/ItemChooserDialog.java:288: @ColorInt final int textColorId = isEnabled(position) On 2016/10/11 19:53:50, ...
4 years, 2 months ago (2016-10-11 20:03:57 UTC) #15
gone
lgtm, thanks!
4 years, 2 months ago (2016-10-11 22:47:39 UTC) #16
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2365733002/80001
4 years, 2 months ago (2016-10-11 22:54:32 UTC) #18
commit-bot: I haz the power
Committed patchset #5 (id:80001)
4 years, 2 months ago (2016-10-11 23:45:01 UTC) #20
commit-bot: I haz the power
4 years, 2 months ago (2016-10-11 23:48:14 UTC) #22
Message was sent while issue was closed.
Patchset 5 (id:??) landed as
https://crrev.com/e4f0a51143b3db3643b7bac31d0be4d08642fe4e
Cr-Commit-Position: refs/heads/master@{#424599}

Powered by Google App Engine
This is Rietveld 408576698