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

Unified Diff: chrome/browser/ui/views/sad_tab_view.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/sad_tab_view.cc
diff --git a/chrome/browser/ui/views/sad_tab_view.cc b/chrome/browser/ui/views/sad_tab_view.cc
index 710467f9d60694d3b56531a459b46f340f4ae278..e3e9aa1b7a57daa0728b7b5c422dc260df94ceeb 100644
--- a/chrome/browser/ui/views/sad_tab_view.cc
+++ b/chrome/browser/ui/views/sad_tab_view.cc
@@ -10,6 +10,7 @@
#include "base/strings/utf_string_conversions.h"
#include "build/build_config.h"
#include "chrome/app/vector_icons/vector_icons.h"
+#include "chrome/browser/ui/views/harmony/chrome_typography.h"
#include "content/public/browser/web_contents.h"
#include "ui/base/l10n/l10n_util.h"
#include "ui/base/resource/resource_bundle.h"
@@ -36,10 +37,10 @@ constexpr int kBulletWidth = 20;
constexpr int kBulletPadding = 13;
views::Label* CreateFormattedLabel(const base::string16& message) {
- views::Label* label = new views::Label(message);
+ views::Label* label =
+ new views::Label(message, views::style::CONTEXT_LABEL, STYLE_SECONDARY);
label->SetMultiLine(true);
- label->SetEnabled(false);
label->SetHorizontalAlignment(gfx::ALIGN_LEFT);
label->SetLineHeight(views::kPanelSubVerticalSpacing);

Powered by Google App Engine
This is Rietveld 408576698