Commit 47bb91de authored by Sinan Sahin's avatar Sinan Sahin Committed by Chromium LUCI CQ

Update EditText textColorHint for disabled state

Currently, we use default_text_color_secondary for EditText's
textColorHint. This CL replaces the textColorHint color with a state
list that has default_text_color_disabled for the disabled state.

Bug: 1162023
Change-Id: If854640c8eb4e7319a45c65548c1059c4e66f673
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2618964
Commit-Queue: Theresa  <twellington@chromium.org>
Reviewed-by: default avatarTheresa  <twellington@chromium.org>
Cr-Commit-Position: refs/heads/master@{#841832}
parent 51c1db59
......@@ -9,7 +9,7 @@
<!-- Text colors -->
<item name="android:textColorLink">@color/default_text_color_link</item>
<item name="android:textColorHighlight">@color/text_highlight_color</item>
<item name="android:textColorHint">@color/default_text_color_secondary</item>
<item name="android:textColorHint">@color/default_text_color_hint_list</item>
<!-- Color of checkboxes, switches, buttons, etc. -->
<item name="colorAccent">@color/default_control_color_active</item>
......
......@@ -147,6 +147,7 @@ android_resources("ui_java_resources") {
"java/res/color/chip_stroke_color.xml",
"java/res/color/chip_text_color.xml",
"java/res/color/chip_text_color_secondary.xml",
"java/res/color/default_text_color_hint_list.xml",
"java/res/color/default_text_color_inverse_list.xml",
"java/res/color/default_text_color_light_list.xml",
"java/res/color/default_text_color_list.xml",
......
<?xml version="1.0" encoding="utf-8"?>
<!-- Copyright 2021 The Chromium Authors. All rights reserved.
Use of this source code is governed by a BSD-style license that can be
found in the LICENSE file.
-->
<selector xmlns:android="http://schemas.android.com/apk/res/android">
<item android:color="@color/default_text_color_disabled" android:state_enabled="false"/>
<item android:color="@color/default_text_color_secondary" />
</selector>
\ No newline at end of file
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment