Commit ffd63963 authored by sandromaggi's avatar sandromaggi Committed by Commit Bot

[Autofill Assistant] Align details card to Clank UX

Change the details card to use Clank defaults.

Before: https://screenshot.googleplex.com/W3pqsrCyrCW
After: https://screenshot.googleplex.com/as5h195BKB8
  (note that the data for price is mocked text)

Bug: 144277634
Change-Id: Ic203a99d36710b928c8e36d939efe883f55d7f61
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1963801Reviewed-by: default avatarClemens Arbesser <arbesser@google.com>
Commit-Queue: Sandro Maggi <sandromaggi@google.com>
Cr-Commit-Position: refs/heads/master@{#724562}
parent 02d93503
......@@ -5,19 +5,14 @@
<resources>
<!-- TODO(crbuc.com/806868): Use a Chrome approved text appearance and remove this. -->
<!-- TODO(b/144417635): Move this to TextAppearance.BlackTitle1 with @font/accent_font_medium. -->
<style name="TextAppearance.AssistantDetailsTitle" parent="TextAppearance.AccentMediumStyle">
<item name="android:textColor">@color/default_text_color_list</item>
<item name="android:textSize">@dimen/text_size_large</item>
</style>
<style name="TextAppearance.AssistantDetailsPrice" parent="TextAppearance.AccentMediumStyle">
<item name="android:textColor">@color/default_text_color_list</item>
<item name="android:textSize">@dimen/text_size_medium</item>
<style name="TextAppearance.AssistantDetailsPrice" parent="TextAppearance.BlackBodyDefault">
<item name="android:textStyle">bold</item>
</style>
<style name="TextAppearance.AssistantDetailsAttribution">
<item name="android:textColor">@color/modern_grey_500</item>
<item name="android:textSize">@dimen/text_size_medium</item>
</style>
<style name="TextAppearance.AssistantBlackTitle" parent="TextAppearance.AccentMediumStyle">
<item name="android:textColor">@color/default_text_color_list</item>
<item name="android:textSize">@dimen/text_size_medium</item>
......
......@@ -198,11 +198,11 @@ class AssistantDetailsViewBinder
setTextStyle(viewHolder.mDescriptionLine2View, details.getUserApprovalRequired(),
details.getHighlightLine2(), R.style.TextAppearance_BlackBody);
setTextStyle(viewHolder.mDescriptionLine3View, details.getUserApprovalRequired(),
details.getHighlightLine3(), R.style.TextAppearance_AssistantDetailsAttribution);
details.getHighlightLine3(), R.style.TextAppearance_BlackDisabledText2);
setTextStyle(viewHolder.mPriceAttributionView, details.getUserApprovalRequired(),
details.getHighlightLine3(), R.style.TextAppearance_AssistantDetailsAttribution);
details.getHighlightLine3(), R.style.TextAppearance_BlackDisabledText2);
setTextStyle(viewHolder.mTotalPriceLabelView, details.getUserApprovalRequired(),
/* highlight= */ false, R.style.TextAppearance_BlackButtonText);
/* highlight= */ false, R.style.TextAppearance_BlackBody);
setTextStyle(viewHolder.mTotalPriceView, details.getUserApprovalRequired(),
/* highlight= */ false, R.style.TextAppearance_AssistantDetailsPrice);
......
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