Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(357)

Unified Diff: ios/chrome/browser/ui/tools_menu/tools_menu_view_item.mm

Issue 2912863005: Use MDCTypography instead of MDFRobotoFontLoader directly. (Closed)
Patch Set: Revert main_controller Created 3 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: ios/chrome/browser/ui/tools_menu/tools_menu_view_item.mm
diff --git a/ios/chrome/browser/ui/tools_menu/tools_menu_view_item.mm b/ios/chrome/browser/ui/tools_menu/tools_menu_view_item.mm
index 9db0a61675baa70ebb7f58b333dc722caa7d342d..0bc88b5c9de9cc46512d48e942fe820dec0d211e 100644
--- a/ios/chrome/browser/ui/tools_menu/tools_menu_view_item.mm
+++ b/ios/chrome/browser/ui/tools_menu/tools_menu_view_item.mm
@@ -6,7 +6,7 @@
#include "base/i18n/rtl.h"
#include "base/mac/objc_property_releaser.h"
-#import "ios/third_party/material_roboto_font_loader_ios/src/src/MaterialRobotoFontLoader.h"
+#import "ios/third_party/material_components_ios/src/components/Typography/src/MaterialTypography.h"
#include "ui/base/l10n/l10n_util.h"
namespace {
@@ -99,7 +99,7 @@ static NSString* const kMenuItemCellID = @"MenuItemCellID";
- (void)initializeTitleView {
_title = [[UILabel alloc] initWithFrame:self.bounds];
[_title setTranslatesAutoresizingMaskIntoConstraints:NO];
- [_title setFont:[[MDFRobotoFontLoader sharedInstance] regularFontOfSize:16]];
+ [_title setFont:[MDCTypography subheadFont]];
[_title setBackgroundColor:[self backgroundColor]];
[_title setTextAlignment:(base::i18n::IsRTL() ? NSTextAlignmentRight
: NSTextAlignmentLeft)];

Powered by Google App Engine
This is Rietveld 408576698