Commit eb27eeab authored by estade@chromium.org's avatar estade@chromium.org

Fix bg color of bookmark bubble view

and make the bg color of all bubbles match the dialog bg color

BUG=376832

Review URL: https://codereview.chromium.org/309713002

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@274368 0039d316-1c4b-4281-b951-d872f2087c98
parent a15016fb
......@@ -128,14 +128,6 @@ bool BookmarkBubbleView::AcceleratorPressed(
return BubbleDelegateView::AcceleratorPressed(accelerator);
}
void BookmarkBubbleView::OnNativeThemeChanged(const ui::NativeTheme* theme) {
views::BubbleDelegateView::OnNativeThemeChanged(theme);
const SkColor background_color = theme->GetSystemColor(
ui::NativeTheme::kColorId_DialogBackground);
set_color(background_color);
set_background(views::Background::CreateSolidBackground(background_color));
}
void BookmarkBubbleView::Init() {
views::Label* title_label = new views::Label(
l10n_util::GetStringUTF16(
......
......@@ -54,7 +54,6 @@ class BookmarkBubbleView : public views::BubbleDelegateView,
// views::View method.
virtual bool AcceleratorPressed(const ui::Accelerator& accelerator) OVERRIDE;
virtual void OnNativeThemeChanged(const ui::NativeTheme* theme) OVERRIDE;
protected:
// views::BubbleDelegateView method.
......
......@@ -278,7 +278,7 @@ gfx::Rect BubbleDelegateView::GetBubbleBounds() {
void BubbleDelegateView::UpdateColorsFromTheme(const ui::NativeTheme* theme) {
if (!color_explicitly_set_)
color_ = theme->GetSystemColor(ui::NativeTheme::kColorId_WindowBackground);
color_ = theme->GetSystemColor(ui::NativeTheme::kColorId_DialogBackground);
set_background(Background::CreateSolidBackground(color()));
BubbleFrameView* frame_view = GetBubbleFrameView();
if (frame_view)
......
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