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

Unified Diff: ios/chrome/browser/ui/settings/cells/account_signin_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/settings/cells/account_signin_item.mm
diff --git a/ios/chrome/browser/ui/settings/cells/account_signin_item.mm b/ios/chrome/browser/ui/settings/cells/account_signin_item.mm
index 911fb4dc87c5d94bc65176a6e64c611278fc8671..bf83bde49f64bd18a7c2ff4e1560c65e5000ac99 100644
--- a/ios/chrome/browser/ui/settings/cells/account_signin_item.mm
+++ b/ios/chrome/browser/ui/settings/cells/account_signin_item.mm
@@ -7,7 +7,7 @@
#include "ios/chrome/grit/ios_chromium_strings.h"
#include "ios/chrome/grit/ios_strings.h"
#import "ios/third_party/material_components_ios/src/components/Palettes/src/MaterialPalettes.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"
#if !defined(__has_feature) || !__has_feature(objc_arc)
@@ -91,10 +91,9 @@ const CGFloat kHorizontalImageFixedSize = 40;
_imageView.contentMode = UIViewContentModeCenter;
_imageView.layer.masksToBounds = YES;
_imageView.contentMode = UIViewContentModeScaleAspectFit;
- _textLabel.font = [[MDFRobotoFontLoader sharedInstance] mediumFontOfSize:14];
+ _textLabel.font = [[MDCTypography fontLoader] mediumFontOfSize:14];
_textLabel.textColor = [[MDCPalette greyPalette] tint900];
- _detailTextLabel.font =
- [[MDFRobotoFontLoader sharedInstance] regularFontOfSize:14];
+ _detailTextLabel.font = [[MDCTypography fontLoader] regularFontOfSize:14];
_detailTextLabel.textColor = [[MDCPalette greyPalette] tint500];
}
« no previous file with comments | « ios/chrome/browser/ui/sad_tab/sad_tab_view.mm ('k') | ios/chrome/browser/ui/settings/cells/autofill_data_item.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698