summaryrefslogtreecommitdiffstats
path: root/chrome/browser/views
diff options
context:
space:
mode:
authorglen@chromium.org <glen@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-08-24 23:49:34 +0000
committerglen@chromium.org <glen@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-08-24 23:49:34 +0000
commitabd33bd8ae78a41d84c5ff74d134b0368d3d9190 (patch)
tree172bd202c690fef8b60038b8e722e0862652d88d /chrome/browser/views
parente50d02901c840370bdccd2fcdf460754649b0874 (diff)
downloadchromium_src-abd33bd8ae78a41d84c5ff74d134b0368d3d9190.zip
chromium_src-abd33bd8ae78a41d84c5ff74d134b0368d3d9190.tar.gz
chromium_src-abd33bd8ae78a41d84c5ff74d134b0368d3d9190.tar.bz2
We weren't drawing the toolbar color, leading to theme hideousness.
Also fix up the bookmark bar border color. BUG=20139 TEST=none Review URL: http://codereview.chromium.org/174352 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@24179 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/views')
-rw-r--r--chrome/browser/views/bookmark_bar_view.cc6
-rw-r--r--chrome/browser/views/frame/opaque_browser_frame_view.cc11
2 files changed, 11 insertions, 6 deletions
diff --git a/chrome/browser/views/bookmark_bar_view.cc b/chrome/browser/views/bookmark_bar_view.cc
index 6c957f7..260d0df 100644
--- a/chrome/browser/views/bookmark_bar_view.cc
+++ b/chrome/browser/views/bookmark_bar_view.cc
@@ -697,7 +697,7 @@ void BookmarkBarView::Paint(gfx::Canvas* canvas) {
// Draw border
SkPaint border_paint;
border_paint.setColor(
- GetThemeProvider()->GetColor(BrowserThemeProvider::COLOR_NTP_SECTION));
+ GetThemeProvider()->GetColor(BrowserThemeProvider::COLOR_NTP_HEADER));
border_paint.setStyle(SkPaint::kStroke_Style);
border_paint.setAlpha(96);
border_paint.setAntiAlias(true);
@@ -708,6 +708,10 @@ void BookmarkBarView::Paint(gfx::Canvas* canvas) {
} else {
gfx::Rect bounds = GetBounds(views::View::APPLY_MIRRORING_TRANSFORMATION);
+ SkColor theme_toolbar_color =
+ GetThemeProvider()->GetColor(BrowserThemeProvider::COLOR_TOOLBAR);
+ canvas->FillRectInt(theme_toolbar_color, 0, 0, width(), height());
+
canvas->TileImageInt(*GetThemeProvider()->
GetBitmapNamed(IDR_THEME_TOOLBAR),
GetParent()->GetBounds(views::View::APPLY_MIRRORING_TRANSFORMATION).x()
diff --git a/chrome/browser/views/frame/opaque_browser_frame_view.cc b/chrome/browser/views/frame/opaque_browser_frame_view.cc
index 0332a67..13fb540 100644
--- a/chrome/browser/views/frame/opaque_browser_frame_view.cc
+++ b/chrome/browser/views/frame/opaque_browser_frame_view.cc
@@ -752,6 +752,12 @@ void OpaqueBrowserFrameView::PaintToolbarBackground(gfx::Canvas* canvas) {
this, &toolbar_origin);
toolbar_bounds.set_origin(toolbar_origin);
+ SkColor theme_toolbar_color =
+ tp->GetColor(BrowserThemeProvider::COLOR_TOOLBAR);
+ canvas->FillRectInt(theme_toolbar_color,
+ toolbar_bounds.x(), toolbar_bounds.y() + 2,
+ toolbar_bounds.width(), toolbar_bounds.height() - 2);
+
int strip_height = browser_view_->GetTabStripHeight();
SkBitmap* theme_toolbar = tp->GetBitmapNamed(IDR_THEME_TOOLBAR);
@@ -784,11 +790,6 @@ void OpaqueBrowserFrameView::PaintToolbarBackground(gfx::Canvas* canvas) {
tp->GetBitmapNamed(IDR_CONTENT_TOP_CENTER);
canvas->TileImageInt(*toolbar_center, 0, 0, toolbar_bounds.x(),
toolbar_bounds.y(), toolbar_bounds.width(), split_point);
- int bottom_center_height =
- std::min(toolbar_center->height(), toolbar_bounds.height()) - split_point;
- canvas->TileImageInt(*toolbar_center, 0,
- toolbar_center->height() - bottom_center_height, toolbar_bounds.x(),
- bottom_y, toolbar_bounds.width(), bottom_center_height);
SkBitmap* toolbar_right = tp->GetBitmapNamed(IDR_CONTENT_TOP_RIGHT_CORNER);
canvas->DrawBitmapInt(*toolbar_right, 0, 0, toolbar_right->width(),