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

Unified Diff: ios/chrome/browser/payments/payment_request_view_controller.mm

Issue 2802033002: Sets the Pay button's title color to white. (Closed)
Patch Set: Switch to MDCButton. Created 3 years, 8 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ios/chrome/browser/payments/payment_request_view_controller.mm
diff --git a/ios/chrome/browser/payments/payment_request_view_controller.mm b/ios/chrome/browser/payments/payment_request_view_controller.mm
index 714a42f03a8a56fb6dda41c00e9ec2cfc6fd58e2..83cc340e4e68f20a9a416176b398c8334e3e2e71 100644
--- a/ios/chrome/browser/payments/payment_request_view_controller.mm
+++ b/ios/chrome/browser/payments/payment_request_view_controller.mm
@@ -101,7 +101,7 @@ typedef NS_ENUM(NSInteger, ItemType) {
@interface PaymentRequestViewController ()<
PaymentRequestViewControllerActions> {
UIBarButtonItem* _cancelButton;
- MDCFlatButton* _payButton;
+ MDCButton* _payButton;
// The PaymentRequest object having a copy of web::PaymentRequest as provided
// by the page invoking the Payment Request API. This is a weak pointer and
@@ -147,14 +147,11 @@ typedef NS_ENUM(NSInteger, ItemType) {
[self navigationItem].leftBarButtonItem = _cancelButton;
// Set up trailing (pay) button.
- _payButton = [[MDCFlatButton alloc] init];
+ _payButton = [[MDCButton alloc] init];
[_payButton setTitle:l10n_util::GetNSString(IDS_PAYMENTS_PAY_BUTTON)
forState:UIControlStateNormal];
- [_payButton setBackgroundColor:[[MDCPalette cr_bluePalette] tint500]
- forState:UIControlStateNormal];
+ [_payButton setCustomTitleColor:[UIColor whiteColor]];
[_payButton setInkColor:[UIColor colorWithWhite:1 alpha:0.2]];
- [_payButton setBackgroundColor:[UIColor grayColor]
- forState:UIControlStateDisabled];
[_payButton addTarget:nil
action:@selector(onConfirm)
forControlEvents:UIControlEventTouchUpInside];
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698