Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(3737)

Unified Diff: ash/wm/panels/panel_frame_view.cc

Issue 2239233002: [ash-md] Fades overview header in and out (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: [ash-md] Fades overview header in and out (rebase) Created 4 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: ash/wm/panels/panel_frame_view.cc
diff --git a/ash/wm/panels/panel_frame_view.cc b/ash/wm/panels/panel_frame_view.cc
index f78fc6cdd7b818a4460f7ede4ad8ac23c23e071e..174220d84e91f837188e60d670e8ceea4e956f66 100644
--- a/ash/wm/panels/panel_frame_view.cc
+++ b/ash/wm/panels/panel_frame_view.cc
@@ -41,6 +41,9 @@ PanelFrameView::~PanelFrameView() {
void PanelFrameView::SetFrameColors(SkColor active_frame_color,
SkColor inactive_frame_color) {
header_painter_->SetFrameColors(active_frame_color, inactive_frame_color);
+ frame_->GetNativeWindow()->SetProperty(
+ aura::client::kTopViewColor,
+ static_cast<int>(header_painter_->GetInactiveFrameColor()));
}
const char* PanelFrameView::GetClassName() const {
@@ -49,6 +52,9 @@ const char* PanelFrameView::GetClassName() const {
void PanelFrameView::InitHeaderPainter() {
header_painter_.reset(new DefaultHeaderPainter);
+ frame_->GetNativeWindow()->SetProperty(
+ aura::client::kTopViewColor,
+ static_cast<int>(header_painter_->GetInactiveFrameColor()));
caption_button_container_ = new FrameCaptionButtonContainerView(frame_);
AddChildView(caption_button_container_);

Powered by Google App Engine
This is Rietveld 408576698