Commit 791ebedc authored by Maxime Charland's avatar Maxime Charland Committed by Commit Bot

Chrome Empties: Use Subheadline font in Recently Closed section

The font was previously changed in all illustrated empty states. The font change was also needed in Recent Tabs > Recently Closed.

Because the TableViewDetailTextItem is used in multiple places in Bling, the font had to be changed only in Recent Tabs.

Bug: 1098328
Change-Id: I047f7f53ed1d118a1efd7e3bda9671a8e482630b
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2342313Reviewed-by: default avatarSebastien Lalancette <seblalancette@chromium.org>
Reviewed-by: default avatarTommy Martino <tmartino@chromium.org>
Reviewed-by: default avatarSergio Collazos <sczs@chromium.org>
Commit-Queue: Maxime Charland <mcharland@google.com>
Cr-Commit-Position: refs/heads/master@{#795947}
parent 1cb589bf
......@@ -840,6 +840,8 @@ const int kRecentlyClosedTabsSectionIndex = 0;
TableViewDetailTextCell* textCell =
base::mac::ObjCCastStrict<TableViewDetailTextCell>(cell);
textCell.detailTextLabel.numberOfLines = 0;
textCell.detailTextLabel.font =
[UIFont preferredFontForTextStyle:UIFontTextStyleSubheadline];
textCell.selectionStyle = UITableViewCellSelectionStyleNone;
textCell.separatorInset =
UIEdgeInsetsMake(0, tableView.bounds.size.width, 0, 0);
......
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