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

Unified Diff: chrome/browser/ui/views/frame/glass_browser_frame_view.cc

Issue 2541873004: Change default frame colors. Change custom titlebar colors on Windows. (Closed)
Patch Set: Created 4 years 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: chrome/browser/ui/views/frame/glass_browser_frame_view.cc
diff --git a/chrome/browser/ui/views/frame/glass_browser_frame_view.cc b/chrome/browser/ui/views/frame/glass_browser_frame_view.cc
index 9362e6133e066e7cbcaa000ef8787c73a2d61e0c..98a5035f1729ced68d5b225a45fac06c0177bf1b 100644
--- a/chrome/browser/ui/views/frame/glass_browser_frame_view.cc
+++ b/chrome/browser/ui/views/frame/glass_browser_frame_view.cc
@@ -556,7 +556,10 @@ bool GlassBrowserFrameView::ShowSystemIcon() const {
}
SkColor GlassBrowserFrameView::GetTitlebarColor() const {
- return GetThemeProvider()->GetColor(ThemeProperties::COLOR_FRAME);
+ const ui::ThemeProvider* tp = GetThemeProvider();
+ return ShouldPaintAsActive()
+ ? tp->GetColor(ThemeProperties::COLOR_FRAME)
+ : tp->GetColor(ThemeProperties::COLOR_FRAME_INACTIVE);
}
Windows10CaptionButton* GlassBrowserFrameView::CreateCaptionButton(
« chrome/browser/themes/theme_service_win.cc ('K') | « chrome/browser/themes/theme_service_win.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698