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

Unified Diff: chrome/browser/chromeos/options/vpn_config_view.cc

Issue 8221027: Make views::Label and views::Link auto-color themselves to be readable over their background colo... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 9 years, 2 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/chromeos/options/vpn_config_view.cc
===================================================================
--- chrome/browser/chromeos/options/vpn_config_view.cc (revision 104769)
+++ chrome/browser/chromeos/options/vpn_config_view.cc (working copy)
@@ -543,7 +543,8 @@
layout->SkipColumns(1);
error_label_ = new views::Label();
error_label_->SetHorizontalAlignment(views::Label::ALIGN_LEFT);
- error_label_->SetColor(SK_ColorRED);
+ error_label_->SetAutoColorReadabilityEnabled(false);
sky 2011/10/11 14:54:10 I tend to think you don't need this for the subcla
+ error_label_->SetEnabledColor(SK_ColorRED);
layout->AddView(error_label_);
// Set or hide the UI, update comboboxes and error labels.

Powered by Google App Engine
This is Rietveld 408576698