Commit 59c38be1 authored by Robbie Gibson's avatar Robbie Gibson Committed by Commit Bot

[iOS][Dark Mode] Fix NTP articles empty state item colors

Bug: 996914
Change-Id: I7ed8b5f1c23f4a3d997bc7a9c0d5a4f21aa9b67b
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1768483Reviewed-by: default avatarGauthier Ambard <gambard@chromium.org>
Commit-Queue: Robbie Gibson <rkgibson@google.com>
Cr-Commit-Position: refs/heads/master@{#690449}
parent 1d2589ec
...@@ -6,6 +6,7 @@ ...@@ -6,6 +6,7 @@
#import "ios/chrome/browser/ui/collection_view/cells/collection_view_text_cell.h" #import "ios/chrome/browser/ui/collection_view/cells/collection_view_text_cell.h"
#import "ios/chrome/browser/ui/content_suggestions/identifier/content_suggestion_identifier.h" #import "ios/chrome/browser/ui/content_suggestions/identifier/content_suggestion_identifier.h"
#import "ios/chrome/common/colors/semantic_color_names.h"
#if !defined(__has_feature) || !__has_feature(objc_arc) #if !defined(__has_feature) || !__has_feature(objc_arc)
#error "This file requires ARC support." #error "This file requires ARC support."
...@@ -57,7 +58,7 @@ ...@@ -57,7 +58,7 @@
// Configures the |textLabel|. // Configures the |textLabel|.
- (void)configureTextLabel:(UILabel*)textLabel { - (void)configureTextLabel:(UILabel*)textLabel {
textLabel.text = self.text; textLabel.text = self.text;
textLabel.textColor = [UIColor colorWithWhite:0.13 alpha:1]; textLabel.textColor = [UIColor colorNamed:kTextPrimaryColor];
textLabel.font = textLabel.font =
[UIFont preferredFontForTextStyle:UIFontTextStyleSubheadline]; [UIFont preferredFontForTextStyle:UIFontTextStyleSubheadline];
textLabel.adjustsFontForContentSizeCategory = YES; textLabel.adjustsFontForContentSizeCategory = YES;
...@@ -67,7 +68,7 @@ ...@@ -67,7 +68,7 @@
// Configures the |detailTextLabel|. // Configures the |detailTextLabel|.
- (void)configureDetailTextLabel:(UILabel*)detailTextLabel { - (void)configureDetailTextLabel:(UILabel*)detailTextLabel {
detailTextLabel.text = self.detailText; detailTextLabel.text = self.detailText;
detailTextLabel.textColor = [UIColor colorWithWhite:0.62 alpha:1]; detailTextLabel.textColor = [UIColor colorNamed:kTextSecondaryColor];
detailTextLabel.font = detailTextLabel.font =
[UIFont preferredFontForTextStyle:UIFontTextStyleFootnote]; [UIFont preferredFontForTextStyle:UIFontTextStyleFootnote];
detailTextLabel.adjustsFontForContentSizeCategory = YES; detailTextLabel.adjustsFontForContentSizeCategory = YES;
......
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