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

Unified Diff: ios/chrome/browser/ui/authentication/chrome_signin_view_controller.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/authentication/chrome_signin_view_controller.mm
diff --git a/ios/chrome/browser/ui/authentication/chrome_signin_view_controller.mm b/ios/chrome/browser/ui/authentication/chrome_signin_view_controller.mm
index e5e7ed5153ed1908a196c0245933fd2d918163d6..f83d98901f83212fb595569635c21631c50ed915 100644
--- a/ios/chrome/browser/ui/authentication/chrome_signin_view_controller.mm
+++ b/ios/chrome/browser/ui/authentication/chrome_signin_view_controller.mm
@@ -53,7 +53,7 @@
#import "ios/third_party/material_components_ios/src/components/ActivityIndicator/src/MaterialActivityIndicator.h"
#import "ios/third_party/material_components_ios/src/components/Buttons/src/MaterialButtons.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"
#import "ui/base/l10n/l10n_util.h"
namespace {
@@ -840,10 +840,10 @@ void HideButton(UIButton* button) {
}
- (void)layoutButtons:(const AuthenticationViewConstants&)constants {
- [_primaryButton titleLabel].font = [[MDFRobotoFontLoader sharedInstance]
- mediumFontOfSize:constants.SecondaryFontSize];
- [_secondaryButton titleLabel].font = [[MDFRobotoFontLoader sharedInstance]
- mediumFontOfSize:constants.SecondaryFontSize];
+ [_primaryButton titleLabel].font =
+ [[MDCTypography fontLoader] mediumFontOfSize:constants.SecondaryFontSize];
+ [_secondaryButton titleLabel].font =
+ [[MDCTypography fontLoader] mediumFontOfSize:constants.SecondaryFontSize];
LayoutRect primaryButtonLayout = LayoutRectZero;
primaryButtonLayout.boundingWidth = CGRectGetWidth(self.view.bounds);

Powered by Google App Engine
This is Rietveld 408576698