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

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

Issue 2912863005: Use MDCTypography instead of MDFRobotoFontLoader directly. (Closed)
Patch Set: Tentative fix for ManualTextFramerTest 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..0392cd8ee38f2db7733dc9e8fa7be0ba9f10f1af 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 fontLoader] regularFontOfSize:16]];
[_title setBackgroundColor:[self backgroundColor]];
[_title setTextAlignment:(base::i18n::IsRTL() ? NSTextAlignmentRight
: NSTextAlignmentLeft)];
« no previous file with comments | « ios/chrome/browser/ui/toolbar/toolbar_controller.mm ('k') | ios/chrome/browser/ui/util/manual_text_framer_unittest.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698