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

[iOS][DarkMode][CollectionView] Remove static colors in footer item.

Bug: 976675
Change-Id: I13d1ca5d725fb83e4f3d1187f7f9fe81e8689ac0
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1748891
Commit-Queue: Javier Ernesto Flores Robles <javierrobles@chromium.org>
Reviewed-by: default avatarRohit Rao <rohitrao@chromium.org>
Cr-Commit-Position: refs/heads/master@{#686373}
parent 8ce2e11f
......@@ -24,9 +24,7 @@ const int kUIKitMultilineDetailTextColor = 0x767676;
const CGFloat kUIKitMultilineDetailFontSize = 12;
// The font size and color to use for footer text in UIKit-style cells.
const int kUIKitFooterTextColor = 0x8A8A8F;
const CGFloat kUIKitFooterFontSize = 13;
const int kUIKitFooterLinkColor = 0x1A73E8;
// The tint color to use for switches in UIKit-style cells.
const int kUIKitSwitchTintColor = 0x1A73E8;
......
......@@ -7,6 +7,7 @@
#include "ios/chrome/browser/ui/collection_view/cells/collection_view_cell_constants.h"
#import "ios/chrome/browser/ui/util/label_link_controller.h"
#import "ios/chrome/browser/ui/util/uikit_ui_util.h"
#import "ios/chrome/common/colors/UIColor+cr_semantic_colors.h"
#import "ios/chrome/common/colors/semantic_color_names.h"
#import "ios/chrome/common/string_util.h"
#import "ios/third_party/material_components_ios/src/components/Typography/src/MaterialTypography.h"
......@@ -145,11 +146,7 @@ const CGFloat kVerticalPadding = 16;
action:^(const GURL& URL) {
[weakSelf.linkDelegate cell:weakSelf didTapLinkURL:URL];
}];
if (cellStyle == CollectionViewCellStyle::kUIKit) {
[_linkController setLinkColor:UIColorFromRGB(kUIKitFooterLinkColor)];
} else {
[_linkController setLinkColor:[UIColor colorNamed:kBlueColor]];
}
[_linkController setLinkColor:[UIColor colorNamed:kBlueColor]];
[_linkController addLinkWithRange:range url:URL];
}
}
......@@ -158,7 +155,7 @@ const CGFloat kVerticalPadding = 16;
withFontScaling:(BOOL)withFontScaling {
if (cellStyle == CollectionViewCellStyle::kUIKit) {
self.textLabel.font = [UIFont systemFontOfSize:kUIKitFooterFontSize];
self.textLabel.textColor = UIColorFromRGB(kUIKitFooterTextColor);
self.textLabel.textColor = UIColor.cr_secondaryLabelColor;
} else {
self.textLabel.shadowOffset = CGSizeMake(1.f, 0.f);
self.textLabel.shadowColor = [UIColor whiteColor];
......
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