diff options
Diffstat (limited to 'views/window/custom_frame_view.cc')
-rw-r--r-- | views/window/custom_frame_view.cc | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/views/window/custom_frame_view.cc b/views/window/custom_frame_view.cc index 2869c07..35ecb6b 100644 --- a/views/window/custom_frame_view.cc +++ b/views/window/custom_frame_view.cc @@ -376,9 +376,12 @@ void CustomFrameView::PaintMaximizedFrameBorder( gfx::Canvas* canvas) { ResourceBundle& rb = ResourceBundle::GetSharedInstance(); - SkBitmap* top_edge = rb.GetBitmapNamed(IDR_WINDOW_TOP_CENTER); - canvas->TileImageInt(*top_edge, 0, FrameBorderThickness(), width(), - top_edge->height()); + SkBitmap* theme_frame = frame_->IsActive() ? + rb.GetBitmapNamed(IDR_THEME_FRAME) : + rb.GetBitmapNamed(IDR_THEME_FRAME_INACTIVE); + + canvas->TileImageInt(*theme_frame, 0, FrameBorderThickness(), width(), + theme_frame->height()); // The bottom of the titlebar actually comes from the top of the Client Edge // graphic, with the actual client edge clipped off the bottom. |