Commit 1f2f21c1 authored by sandromaggi's avatar sandromaggi Committed by Commit Bot

[Autofill Assistant] Adapt icon colors to Clank

Aligning the colors of the icons to use either default blue or default.

Before:
Light: https://screenshot.googleplex.com/ZSgf03CQaaM
Dark: https://screenshot.googleplex.com/at6MybZraag

After:
Light: https://screenshot.googleplex.com/zF7wCHx9gZa
Dark: https://screenshot.googleplex.com/gQqS2Wm5Vza

Bug: b/144416230
Change-Id: Ice808de834db62c79949792af74b3d059f689de8
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1932802Reviewed-by: default avatarClemens Arbesser <arbesser@google.com>
Commit-Queue: Sandro Maggi <sandromaggi@google.com>
Cr-Commit-Position: refs/heads/master@{#719128}
parent ce424670
......@@ -29,7 +29,7 @@
android:layout_height="24dp"
android:layout_gravity="center_vertical"
android:src="@drawable/plus"
app:tint="@color/modern_blue_600"/>
app:tint="@color/default_icon_color_blue"/>
<Space android:layout_width="8dp" android:layout_height="0dp"/>
<TextView android:id="@+id/section_title_add_button_label"
android:layout_width="wrap_content"
......
......@@ -25,6 +25,7 @@ import androidx.annotation.DrawableRes;
import org.chromium.base.ApiCompatibilityUtils;
import org.chromium.base.Callback;
import org.chromium.chrome.autofill_assistant.R;
import org.chromium.chrome.browser.ui.widget.TintedDrawable;
import org.chromium.ui.widget.ChromeImageView;
import java.util.ArrayList;
......@@ -403,7 +404,8 @@ public class AssistantChoiceList extends GridLayout {
int editButtonSize = getContext().getResources().getDimensionPixelSize(
R.dimen.autofill_assistant_choicelist_edit_button_size);
ChromeImageView editButton = new ChromeImageView(getContext());
editButton.setImageResource(editButtonDrawable);
editButton.setImageDrawable(TintedDrawable.constructTintedDrawable(
getContext(), editButtonDrawable, R.color.default_icon_color));
editButton.setScaleType(ImageView.ScaleType.CENTER_INSIDE);
editButton.setLayoutParams(new ViewGroup.LayoutParams(editButtonSize, editButtonSize));
......
......@@ -186,8 +186,8 @@ public class AssistantVerticalExpander extends LinearLayout {
}
private View createChevron() {
TintedDrawable chevron = TintedDrawable.constructTintedDrawable(getContext(),
R.drawable.ic_expand_more_black_24dp, R.color.payments_section_chevron);
TintedDrawable chevron = TintedDrawable.constructTintedDrawable(
getContext(), R.drawable.ic_expand_more_black_24dp, R.color.default_icon_color);
ImageView view = new ImageView(getContext());
view.setImageDrawable(chevron);
......
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