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

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

Issue 2807583003: Proper styling of the footer string. (Closed)
Patch Set: 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..853247a707eb7a087fe1dfbf770d66f277c9ec40 100644
--- a/ios/chrome/browser/payments/payment_request_view_controller.mm
+++ b/ios/chrome/browser/payments/payment_request_view_controller.mm
@@ -60,6 +60,8 @@ using ::payment_request_util::GetShippingOptionSelectorTitle;
// as a link in the UI (see setLabelLinkURL: in CollectionViewFooterCell).
const char kSettingsURL[] = "settings://card-and-address";
+const CGFloat kFooterCellHorizontalPadding = 16;
+
} // namespace
NSString* const kPaymentRequestCollectionViewID =
@@ -522,6 +524,15 @@ typedef NS_ENUM(NSInteger, ItemType) {
[[MDCPalette cr_bluePalette] tint700];
break;
}
+ case ItemTypeFooterText: {
+ CollectionViewFooterCell* footerCell =
+ base::mac::ObjCCastStrict<CollectionViewFooterCell>(cell);
+ footerCell.textLabel.font = [MDCTypography body2Font];
+ footerCell.textLabel.textColor = [[MDCPalette greyPalette] tint600];
+ footerCell.textLabel.shadowColor = nil; // No shadow.
+ footerCell.horizontalPadding = kFooterCellHorizontalPadding;
+ break;
+ }
default:
break;
}
« 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