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

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

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.h
diff --git a/chrome/browser/ui/views/payments/payment_request_views_util.h b/chrome/browser/ui/views/payments/payment_request_views_util.h
index 9efedc2351fcff4df03649bf783a532a181c27a4..c3bd83b46e03ac220f24358ce761282082515896 100644
--- a/chrome/browser/ui/views/payments/payment_request_views_util.h
+++ b/chrome/browser/ui/views/payments/payment_request_views_util.h
@@ -12,6 +12,7 @@
#include "components/payments/mojom/payment_request.mojom.h"
#include "third_party/skia/include/core/SkColor.h"
#include "ui/gfx/geometry/insets.h"
+#include "ui/gfx/text_constants.h"
namespace autofill {
class AutofillProfile;
@@ -131,6 +132,11 @@ std::unique_ptr<views::Label> CreateBoldLabel(const base::string16& text);
// default font with a heavier weight.
std::unique_ptr<views::Label> CreateMediumLabel(const base::string16& text);
+// Creates a label with grey, "hint" text and the provided |alignment|.
+std::unique_ptr<views::Label> CreateHintLabel(
+ const base::string16& text,
+ gfx::HorizontalAlignment alignment = gfx::ALIGN_CENTER);
+
// Creates a 2 line label containing |shipping_option|'s label and amount. If
// |emphasize_label| is true, the label part will be in medium weight.
std::unique_ptr<views::View> CreateShippingOptionLabel(

Powered by Google App Engine
This is Rietveld 408576698