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

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

Issue 2290703002: Make title text white in ash incognito popup window frames. (Closed)
Patch Set: Created 4 years, 4 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
« no previous file with comments | « chrome/browser/ui/views/frame/browser_header_painter_ash.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/views/frame/browser_header_painter_ash.cc
diff --git a/chrome/browser/ui/views/frame/browser_header_painter_ash.cc b/chrome/browser/ui/views/frame/browser_header_painter_ash.cc
index da9690d0d6f4f9587679d5bed37e604ed4c94eec..bebbaed92b3f0c617b8e595a6786a29d98b8e707 100644
--- a/chrome/browser/ui/views/frame/browser_header_painter_ash.cc
+++ b/chrome/browser/ui/views/frame/browser_header_painter_ash.cc
@@ -16,6 +16,7 @@
#include "chrome/browser/ui/views/frame/browser_view.h"
#include "chrome/grit/theme_resources.h"
#include "third_party/skia/include/core/SkCanvas.h"
+#include "third_party/skia/include/core/SkColor.h"
#include "third_party/skia/include/core/SkPaint.h"
#include "third_party/skia/include/core/SkPath.h"
#include "ui/base/material_design/material_design_controller.h"
@@ -34,8 +35,11 @@
using views::Widget;
namespace {
+
// Color for the window title text.
-const SkColor kWindowTitleTextColor = SkColorSetRGB(40, 40, 40);
+const SkColor kNormalWindowTitleTextColor = SkColorSetRGB(40, 40, 40);
+const SkColor kIncognitoWindowTitleTextColor = SK_ColorWHITE;
+
// Duration of crossfade animation for activating and deactivating frame.
const int kActivationCrossfadeDurationMs = 200;
@@ -333,7 +337,8 @@ void BrowserHeaderPainterAsh::PaintTitleBar(gfx::Canvas* canvas) {
title_bounds.set_x(view_->GetMirroredXForRect(title_bounds));
canvas->DrawStringRectWithFlags(frame_->widget_delegate()->GetWindowTitle(),
BrowserFrame::GetTitleFontList(),
- kWindowTitleTextColor,
+ is_incognito_ ? kIncognitoWindowTitleTextColor
+ : kNormalWindowTitleTextColor,
title_bounds,
gfx::Canvas::NO_SUBPIXEL_RENDERING);
}
« no previous file with comments | « chrome/browser/ui/views/frame/browser_header_painter_ash.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698