| Index: ios/chrome/browser/ui/settings/autofill_collection_view_controller.mm
|
| diff --git a/ios/chrome/browser/ui/settings/autofill_collection_view_controller.mm b/ios/chrome/browser/ui/settings/autofill_collection_view_controller.mm
|
| index 9f901101cf70c322bfbe2cf1271973fdddb3374f..2cb906867882527c7a5b47f67400cc01d4a4bb33 100644
|
| --- a/ios/chrome/browser/ui/settings/autofill_collection_view_controller.mm
|
| +++ b/ios/chrome/browser/ui/settings/autofill_collection_view_controller.mm
|
| @@ -16,6 +16,7 @@
|
| #include "ios/chrome/browser/browser_state/chrome_browser_state.h"
|
| #import "ios/chrome/browser/ui/collection_view/cells/MDCCollectionViewCell+Chrome.h"
|
| #import "ios/chrome/browser/ui/collection_view/cells/collection_view_switch_item.h"
|
| +#import "ios/chrome/browser/ui/collection_view/cells/collection_view_text_cell.h"
|
| #import "ios/chrome/browser/ui/collection_view/cells/collection_view_text_item.h"
|
| #import "ios/chrome/browser/ui/collection_view/collection_view_model.h"
|
| #import "ios/chrome/browser/ui/settings/autofill_credit_card_edit_collection_view_controller.h"
|
| @@ -23,6 +24,7 @@
|
| #import "ios/chrome/browser/ui/settings/cells/autofill_data_item.h"
|
| #include "ios/chrome/grit/ios_strings.h"
|
| #import "ios/third_party/material_components_ios/src/components/Palettes/src/MaterialPalettes.h"
|
| +#import "ios/third_party/material_components_ios/src/components/Typography/src/MaterialTypography.h"
|
| #include "ui/base/l10n/l10n_util.h"
|
|
|
| #if !defined(__has_feature) || !__has_feature(objc_arc)
|
| @@ -180,7 +182,6 @@ typedef NS_ENUM(NSInteger, ItemType) {
|
| - (CollectionViewTextItem*)genericHeader {
|
| CollectionViewTextItem* header =
|
| [[CollectionViewTextItem alloc] initWithType:ItemTypeHeader];
|
| - header.textColor = [[MDCPalette greyPalette] tint500];
|
| return header;
|
| }
|
|
|
| @@ -265,6 +266,13 @@ typedef NS_ENUM(NSInteger, ItemType) {
|
| [switchCell.switchView addTarget:self
|
| action:@selector(walletSwitchChanged:)
|
| forControlEvents:UIControlEventValueChanged];
|
| + } else if (itemType == ItemTypeHeader) {
|
| + CollectionViewTextCell* textCell =
|
| + base::mac::ObjCCastStrict<CollectionViewTextCell>(cell);
|
| + textCell.textLabel.font = [MDCTypography body2Font];
|
| + textCell.textLabel.textColor = [[MDCPalette greyPalette] tint500];
|
| + textCell.detailTextLabel.font = [MDCTypography body1Font];
|
| + textCell.detailTextLabel.textColor = [[MDCPalette greyPalette] tint500];
|
| }
|
| return cell;
|
| }
|
|
|