Chromium Code Reviews| Index: chrome/browser/ui/views/avatar_menu_bubble_view.cc |
| diff --git a/chrome/browser/ui/views/avatar_menu_bubble_view.cc b/chrome/browser/ui/views/avatar_menu_bubble_view.cc |
| index 793cfcedfaa28d79049de83a1f26abc761e0a8f7..9dda89118f42cd3b44c109c3aed15446ba6765ad 100644 |
| --- a/chrome/browser/ui/views/avatar_menu_bubble_view.cc |
| +++ b/chrome/browser/ui/views/avatar_menu_bubble_view.cc |
| @@ -288,6 +288,11 @@ void ProfileItemView::OnBlur() { |
| void ProfileItemView::OnHighlightStateChanged() { |
| set_background(IsHighlighted() ? views::Background::CreateSolidBackground( |
| SkColorSetRGB(0xe3, 0xed, 0xf6)) : NULL); |
| + SkColor background_color = background() ? |
| + background()->get_color() : views::BubbleDelegateView::kBackgroundColor; |
| + name_label_->SetBackgroundColor(background_color); |
|
msw
2011/12/08 05:46:30
Labels should find backgrounds up the view hierarc
|
| + sync_state_label_->SetBackgroundColor(background_color); |
| + edit_link_->SetBackgroundColor(background_color); |
| bool show_edit = IsHighlighted() && item_.active; |
| sync_state_label_->SetVisible(!show_edit); |
| @@ -488,6 +493,7 @@ void AvatarMenuBubbleView::OnAvatarMenuModelChanged( |
| l10n_util::GetStringUTF16(IDS_PROFILES_CREATE_NEW_PROFILE_LINK)); |
| add_profile_link_->set_listener(this); |
| add_profile_link_->SetHorizontalAlignment(views::Label::ALIGN_LEFT); |
| + add_profile_link_->SetBackgroundColor(color()); |
| add_profile_link_->SetEnabledColor(SkColorSetRGB(0xe3, 0xed, 0xf6)); |
| AddChildView(add_profile_link_); |