Commit c8f412a3 authored by Maxime Charland's avatar Maxime Charland Committed by Commit Bot

Chrome Empties: Use Subheadline instead of Footnote

Subtitles should use the Subheadline Font Style instead of Footnote, which is a little too small.

Bug: 1098328
Change-Id: I4ffe669b9709fbd8143d00c1f16a393b723c5160
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2341172Reviewed-by: default avatarTommy Martino <tmartino@chromium.org>
Reviewed-by: default avatarSergio Collazos <sczs@chromium.org>
Reviewed-by: default avataredchin <edchin@chromium.org>
Commit-Queue: Maxime Charland <mcharland@google.com>
Cr-Commit-Position: refs/heads/master@{#795901}
parent 3cae1d7e
......@@ -119,7 +119,12 @@ const CGFloat kImageWidth = 150.0;
bottomLabel.translatesAutoresizingMaskIntoConstraints = NO;
bottomLabel.text = self.body;
bottomLabel.textColor = UIColorFromRGB(kTabGridEmptyStateBodyTextColor);
bottomLabel.font = [UIFont preferredFontForTextStyle:UIFontTextStyleBody];
if (base::FeatureList::IsEnabled(kIllustratedEmptyStates)) {
bottomLabel.font =
[UIFont preferredFontForTextStyle:UIFontTextStyleSubheadline];
} else {
bottomLabel.font = [UIFont preferredFontForTextStyle:UIFontTextStyleBody];
}
bottomLabel.adjustsFontForContentSizeCategory = YES;
bottomLabel.numberOfLines = 0;
bottomLabel.textAlignment = NSTextAlignmentCenter;
......
......@@ -107,7 +107,7 @@ const CGFloat kButtonCornerRadius = 8.0;
_subtitleLabel = [[UILabel alloc] init];
_subtitleLabel.textColor = [UIColor colorNamed:kTextSecondaryColor];
_subtitleLabel.font =
[UIFont preferredFontForTextStyle:UIFontTextStyleFootnote];
[UIFont preferredFontForTextStyle:UIFontTextStyleSubheadline];
_subtitleLabel.textAlignment = NSTextAlignmentCenter;
_subtitleLabel.numberOfLines = 0;
_subtitleLabel.translatesAutoresizingMaskIntoConstraints = NO;
......
......@@ -124,7 +124,7 @@ const CGFloat kImageHeightPt = 150.0;
subtitleLabel.numberOfLines = 0;
subtitleLabel.text = self.subtitle;
subtitleLabel.font =
[UIFont preferredFontForTextStyle:UIFontTextStyleFootnote];
[UIFont preferredFontForTextStyle:UIFontTextStyleSubheadline];
subtitleLabel.textColor = [UIColor colorNamed:kTextSecondaryColor];
subtitleLabel.textAlignment = NSTextAlignmentCenter;
[subviewsArray addObject:subtitleLabel];
......
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