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

Unified Diff: chrome/browser/ui/views/payments/payment_request_views_util.cc

Issue 2910153002: Remove views::Label::SetDisabledColor(). Replace with typography colors. (Closed)
Patch Set: rebase for r476345 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: chrome/browser/ui/views/payments/payment_request_views_util.cc
diff --git a/chrome/browser/ui/views/payments/payment_request_views_util.cc b/chrome/browser/ui/views/payments/payment_request_views_util.cc
index 0a6d5bebf8c29f2da5f40a06b70a40f13425abe8..f1ea05d6826c523e8a0f8868eb1afca390307865 100644
--- a/chrome/browser/ui/views/payments/payment_request_views_util.cc
+++ b/chrome/browser/ui/views/payments/payment_request_views_util.cc
@@ -351,6 +351,15 @@ std::unique_ptr<views::Label> CreateMediumLabel(const base::string16& text) {
return label;
}
+std::unique_ptr<views::Label> CreateHintLabel(
+ const base::string16& text,
+ gfx::HorizontalAlignment alignment) {
+ std::unique_ptr<views::Label> label = base::MakeUnique<views::Label>(
+ text, views::style::CONTEXT_LABEL, STYLE_HINT);
+ label->SetHorizontalAlignment(alignment);
+ return label;
+}
+
std::unique_ptr<views::View> CreateShippingOptionLabel(
payments::mojom::PaymentShippingOption* shipping_option,
const base::string16& formatted_amount,

Powered by Google App Engine
This is Rietveld 408576698