Commit 7098dbf0 authored by Chris Lu's avatar Chris Lu Committed by Commit Bot

[ios] Set TableViewUrlCell Metadata Label Light Gray

Change-Id: I7bc5d61879ad726029b2cb8f59ab00af2b8f5c4a
Reviewed-on: https://chromium-review.googlesource.com/1112655
Commit-Queue: Chris Lu <thegreenfrog@chromium.org>
Reviewed-by: default avatarSergio Collazos <sczs@chromium.org>
Cr-Commit-Position: refs/heads/master@{#569960}
parent 02be9389
...@@ -9,6 +9,7 @@ ...@@ -9,6 +9,7 @@
#import "ios/chrome/browser/ui/favicon/favicon_view.h" #import "ios/chrome/browser/ui/favicon/favicon_view.h"
#import "ios/chrome/browser/ui/table_view/cells/table_view_cells_constants.h" #import "ios/chrome/browser/ui/table_view/cells/table_view_cells_constants.h"
#import "ios/chrome/browser/ui/table_view/chrome_table_view_styler.h" #import "ios/chrome/browser/ui/table_view/chrome_table_view_styler.h"
#import "ios/chrome/browser/ui/uikit_ui_util.h"
#import "ios/chrome/browser/ui/util/constraints_ui_util.h" #import "ios/chrome/browser/ui/util/constraints_ui_util.h"
#include "url/gurl.h" #include "url/gurl.h"
...@@ -21,6 +22,8 @@ namespace { ...@@ -21,6 +22,8 @@ namespace {
const CGFloat kFaviconWidth = 16; const CGFloat kFaviconWidth = 16;
// The width and height of the favicon container view. // The width and height of the favicon container view.
const CGFloat kFaviconContainerWidth = 28; const CGFloat kFaviconContainerWidth = 28;
// The text color of the URL and metadata labels.
const CGFloat kSecondaryLabelLightGrayTextColor = 0x8E8E93;
} }
@implementation TableViewURLItem @implementation TableViewURLItem
...@@ -99,9 +102,11 @@ const CGFloat kFaviconContainerWidth = 28; ...@@ -99,9 +102,11 @@ const CGFloat kFaviconContainerWidth = 28;
_titleLabel.adjustsFontForContentSizeCategory = YES; _titleLabel.adjustsFontForContentSizeCategory = YES;
_URLLabel.font = [UIFont preferredFontForTextStyle:UIFontTextStyleCaption1]; _URLLabel.font = [UIFont preferredFontForTextStyle:UIFontTextStyleCaption1];
_URLLabel.adjustsFontForContentSizeCategory = YES; _URLLabel.adjustsFontForContentSizeCategory = YES;
_URLLabel.textColor = [UIColor lightGrayColor]; _URLLabel.textColor = UIColorFromRGB(kSecondaryLabelLightGrayTextColor);
_metadataLabel.font = _metadataLabel.font =
[UIFont preferredFontForTextStyle:UIFontTextStyleCaption1]; [UIFont preferredFontForTextStyle:UIFontTextStyleCaption1];
_metadataLabel.textColor =
UIColorFromRGB(kSecondaryLabelLightGrayTextColor);
_metadataLabel.adjustsFontForContentSizeCategory = YES; _metadataLabel.adjustsFontForContentSizeCategory = YES;
// Use stack views to layout the subviews except for the favicon. // Use stack views to layout the subviews except for the favicon.
......
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