diff options
author | glen@chromium.org <glen@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2008-11-14 20:40:51 +0000 |
---|---|---|
committer | glen@chromium.org <glen@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2008-11-14 20:40:51 +0000 |
commit | 516c89fd0d8ccc7a06838b0340745685bddf3853 (patch) | |
tree | 9c45713514af5d64c27dd7f7495a49a595055a7b /chrome/browser/views | |
parent | e16e1835a704999dd5bd001d84d261cbc60ed58d (diff) | |
download | chromium_src-516c89fd0d8ccc7a06838b0340745685bddf3853.zip chromium_src-516c89fd0d8ccc7a06838b0340745685bddf3853.tar.gz chromium_src-516c89fd0d8ccc7a06838b0340745685bddf3853.tar.bz2 |
Make the bookmark manager blue.
Review URL: http://codereview.chromium.org/11006
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@5506 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/views')
-rw-r--r-- | chrome/browser/views/bookmark_manager_view.cc | 16 |
1 files changed, 14 insertions, 2 deletions
diff --git a/chrome/browser/views/bookmark_manager_view.cc b/chrome/browser/views/bookmark_manager_view.cc index b1a5961..fc36cd6 100644 --- a/chrome/browser/views/bookmark_manager_view.cc +++ b/chrome/browser/views/bookmark_manager_view.cc @@ -47,6 +47,11 @@ static const int kSearchDelayMS = 200; static const int kOrganizeMenuButtonID = 1; static const int kToolsMenuButtonID = 2; +// Background color. +static const SkColor kBackgroundColorTop = SkColorSetRGB(242, 247, 253); +static const SkColor kBackgroundColorBottom = SkColorSetRGB(223, 234, 248); +static const int kBackgroundGradientHeight = 28; + namespace { // Observer installed on the importer. When done importing the newly created @@ -154,6 +159,8 @@ BookmarkManagerView::BookmarkManagerView(Profile* profile) tools_menu_button->SetID(kToolsMenuButtonID); split_view_ = new views::SingleSplitView(tree_view_, table_view_); + split_view_->set_background( + views::Background::CreateSolidBackground(kBackgroundColorBottom)); views::GridLayout* layout = new views::GridLayout(this); SetLayoutManager(layout); @@ -290,8 +297,13 @@ std::vector<BookmarkNode*> BookmarkManagerView::GetSelectedTableNodes() { } void BookmarkManagerView::PaintBackground(ChromeCanvas* canvas) { - canvas->drawColor(color_utils::GetSysSkColor(COLOR_3DFACE), - SkPorterDuff::kSrc_Mode); + canvas->drawColor(kBackgroundColorBottom, SkPorterDuff::kSrc_Mode); + + SkPaint paint; + paint.setShader(gfx::CreateGradientShader(0, kBackgroundGradientHeight, + kBackgroundColorTop, + kBackgroundColorBottom))->safeUnref(); + canvas->FillRectInt(0, 0, width(), kBackgroundGradientHeight, paint); } gfx::Size BookmarkManagerView::GetPreferredSize() { |