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

Unified Diff: chrome/browser/ui/views/bookmarks/bookmark_bar_instructions_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/ui/views/bookmarks/bookmark_bar_instructions_view.cc
===================================================================
--- chrome/browser/ui/views/bookmarks/bookmark_bar_instructions_view.cc (revision 104959)
+++ chrome/browser/ui/views/bookmarks/bookmark_bar_instructions_view.cc (working copy)
@@ -29,6 +29,7 @@
updated_colors_(false) {
instructions_ = new views::Label(
l10n_util::GetStringUTF16(IDS_BOOKMARKS_NO_ITEMS));
+ instructions_->SetAutoColorReadabilityEnabled(false);
AddChildView(instructions_);
if (browser_defaults::kShowImportOnBookmarkBar) {
@@ -37,6 +38,7 @@
// We don't want the link to alter tab navigation.
import_link_->set_focusable(false);
import_link_->set_listener(this);
+ import_link_->SetAutoColorReadabilityEnabled(false);
AddChildView(import_link_);
}
}
@@ -109,7 +111,7 @@
updated_colors_ = true;
SkColor text_color =
theme_provider->GetColor(ThemeService::COLOR_BOOKMARK_TEXT);
- instructions_->SetColor(text_color);
+ instructions_->SetEnabledColor(text_color);
if (import_link_)
- import_link_->SetColor(text_color);
+ import_link_->SetEnabledColor(text_color);
}
« no previous file with comments | « chrome/browser/ui/views/avatar_menu_bubble_view.cc ('k') | chrome/browser/ui/views/bookmarks/bookmark_bubble_view.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698