Commit 4be0712c authored by Javier Ernesto Flores Robles's avatar Javier Ernesto Flores Robles Committed by Commit Bot

[iOS][DarkMode] Tint the accessories with blue_color

Sets the tint color of the cell so when the accessory view is created
it is tinted with the right color.
Sets the tint color of the table view to blue so the index uses it.

Screenshots:
https://drive.google.com/file/d/1xfOJVT6ZqqOiSb_pEX_uWqeLeEcxpc2F/view?usp=sharing
https://drive.google.com/file/d/1-HwGeIh1d-vk3fSDfsLVxWTm0y64kRfG/view?usp=sharing

Bug: 976675
Change-Id: I3f1b4990060a1db29eb119c271d3402c8e1706b2
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1749010
Commit-Queue: Javier Ernesto Flores Robles <javierrobles@chromium.org>
Reviewed-by: default avatarLouis Romero <lpromero@chromium.org>
Cr-Commit-Position: refs/heads/master@{#688524}
parent 79e92854
......@@ -136,6 +136,8 @@ const CGFloat kVerticalSpacingBetweenLabels = 8;
_emailLabel.textColor = [UIColor colorNamed:kTextPrimaryColor];
_notificationLabel.textColor = [UIColor colorNamed:kBlueColor];
self.tintColor = [UIColor colorNamed:kBlueColor];
}
- (void)useScaledFont:(BOOL)useScaledFont {
......
......@@ -146,6 +146,8 @@ const CGFloat kHorizontalPadding = 16;
[_methodTypeIconView.centerYAnchor
constraintEqualToAnchor:self.contentView.centerYAnchor],
]];
self.tintColor = [UIColor colorNamed:kBlueColor];
}
return self;
}
......
......@@ -144,6 +144,8 @@ const CGFloat kVerticalSpacingBetweenLabels = 8;
SetUILabelScaledFont(_detailTextLabel, [MDCTypography body1Font]);
_detailTextLabel.numberOfLines = 0;
_detailTextLabel.lineBreakMode = NSLineBreakByWordWrapping;
self.tintColor = [UIColor colorNamed:kBlueColor];
}
// Set constraints on subviews.
......
......@@ -11,6 +11,7 @@
#import "ios/chrome/browser/ui/material_components/utils.h"
#import "ios/chrome/browser/ui/payments/payment_request_picker_row.h"
#include "ios/chrome/browser/ui/util/ui_util.h"
#import "ios/chrome/common/colors/semantic_color_names.h"
#import "ios/third_party/material_components_ios/src/components/CollectionCells/src/MaterialCollectionCells.h"
#include "third_party/libaddressinput/messages.h"
#include "ui/base/l10n/l10n_util.h"
......@@ -113,6 +114,8 @@ NSString* const kPaymentRequestPickerSearchBarAccessibilityID =
kPaymentRequestPickerSearchBarAccessibilityID;
self.tableView.tableHeaderView = self.searchController.searchBar;
self.tableView.tintColor = [UIColor colorNamed:kBlueColor];
// Presentation of searchController will walk up the view controller hierarchy
// until it finds the root view controller or one that defines a presentation
// context. Make this class the presentation context so that the search
......
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