Commit cae98e4c authored by sail@chromium.org's avatar sail@chromium.org

Revert 113634 - Add support for high contrast mode to bubbles

BUG=105023
TEST=


Review URL: http://codereview.chromium.org/8887003

TBR=sail@chromium.org
Review URL: http://codereview.chromium.org/8872029

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@113637 0039d316-1c4b-4281-b951-d872f2087c98
parent 9a85f4cd
...@@ -288,11 +288,6 @@ void ProfileItemView::OnBlur() { ...@@ -288,11 +288,6 @@ void ProfileItemView::OnBlur() {
void ProfileItemView::OnHighlightStateChanged() { void ProfileItemView::OnHighlightStateChanged() {
set_background(IsHighlighted() ? views::Background::CreateSolidBackground( set_background(IsHighlighted() ? views::Background::CreateSolidBackground(
SkColorSetRGB(0xe3, 0xed, 0xf6)) : NULL); SkColorSetRGB(0xe3, 0xed, 0xf6)) : NULL);
SkColor background_color = background() ?
background()->get_color() : views::BubbleDelegateView::kBackgroundColor;
name_label_->SetBackgroundColor(background_color);
sync_state_label_->SetBackgroundColor(background_color);
edit_link_->SetBackgroundColor(background_color);
bool show_edit = IsHighlighted() && item_.active; bool show_edit = IsHighlighted() && item_.active;
sync_state_label_->SetVisible(!show_edit); sync_state_label_->SetVisible(!show_edit);
...@@ -493,7 +488,6 @@ void AvatarMenuBubbleView::OnAvatarMenuModelChanged( ...@@ -493,7 +488,6 @@ void AvatarMenuBubbleView::OnAvatarMenuModelChanged(
l10n_util::GetStringUTF16(IDS_PROFILES_CREATE_NEW_PROFILE_LINK)); l10n_util::GetStringUTF16(IDS_PROFILES_CREATE_NEW_PROFILE_LINK));
add_profile_link_->set_listener(this); add_profile_link_->set_listener(this);
add_profile_link_->SetHorizontalAlignment(views::Label::ALIGN_LEFT); add_profile_link_->SetHorizontalAlignment(views::Label::ALIGN_LEFT);
add_profile_link_->SetBackgroundColor(color());
add_profile_link_->SetEnabledColor(SkColorSetRGB(0xe3, 0xed, 0xf6)); add_profile_link_->SetEnabledColor(SkColorSetRGB(0xe3, 0xed, 0xf6));
AddChildView(add_profile_link_); AddChildView(add_profile_link_);
......
...@@ -5,7 +5,6 @@ ...@@ -5,7 +5,6 @@
#include "ui/views/bubble/bubble_delegate.h" #include "ui/views/bubble/bubble_delegate.h"
#include "ui/base/animation/slide_animation.h" #include "ui/base/animation/slide_animation.h"
#include "ui/gfx/color_utils.h"
#include "ui/views/bubble/bubble_frame_view.h" #include "ui/views/bubble/bubble_frame_view.h"
#include "ui/views/widget/widget.h" #include "ui/views/widget/widget.h"
...@@ -72,13 +71,8 @@ Widget* CreateBorderWidget(BubbleDelegateView* bubble, Widget* parent) { ...@@ -72,13 +71,8 @@ Widget* CreateBorderWidget(BubbleDelegateView* bubble, Widget* parent) {
} // namespace } // namespace
#if defined(OS_WIN) && !defined(USE_AURA) // TODO(msw): Use NativeTheme/color_helper (crbug.com/105023).
const SkColor BubbleDelegateView::kBackgroundColor = const SkColor BubbleDelegateView::kBackgroundColor = SK_ColorWHITE;
color_utils::GetSysSkColor(COLOR_WINDOW);
#else
// TODO(beng): source from theme provider.
const SkColor Bubble::kBackgroundColor = SK_ColorWHITE;
#endif
BubbleDelegateView::BubbleDelegateView() BubbleDelegateView::BubbleDelegateView()
: close_on_esc_(true), : close_on_esc_(true),
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment