New issue
Advanced search Search tips
Note: Color blocks (like or ) mean that a user may not be available. Tooltip shows the reason.

Issue 607356 link

Starred by 5 users

Issue metadata

Status: Fixed
Owner:
Last visit > 30 days ago
Closed: May 2016
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: Mac
Pri: 2
Type: Bug

Blocking:
issue 547953



Sign in to add a comment

Strange window title coloring in GMail compose window under Material Design

Project Member Reported by shrike@chromium.org, Apr 27 2016

Issue description

Version: 52.0.2715.0
OS: 10.11

What steps will reproduce the problem?
(1) Log into GMail
(2) Shift-click the Compose button

What is the expected output?
A new GMail compose window appears with a normal title bar.

What do you see instead?
The area behind the title text is drawn in a different color than the rest of the title bar.


 

Comment 1 by shrike@chromium.org, May 10 2016

Cc: shrike@chromium.org
Owner: spqc...@chromium.org
Summary: Strange window title coloring in GMail compose window under Material Design (was: Strange window title coloring in GMail compose window)
I should have mentioned that the first step is to turn on Material Design - that's the reason for the strange drawing.

It seems there is Chrome code somewhere that is drawing the window title bar, and has hard-coded the system theme gray value. See attached screenshots.


Expected.png
9.5 KB View Download
Actual.png
8.8 KB View Download

Comment 2 by shrike@chromium.org, May 12 2016

Cc: a...@chromium.org
 Issue 611274  has been merged into this issue.
Another way to replicate this is to download the "Open-as-popup" extension and then change the browser window into a popup

Anyway, it looks like this issue occurs because a NSVisualEffectView gets inserted in Material design. I find that if we remove NSVisualEffectView, the titlebar text will like fine (see attached). Is it alright if we don’t add the NSVisualEffectView for popups?

Otherwise, changing the text background for the titlebar will have to involve some hacking since it’s not easily accessible with us. I have some ideas I’ve currently experimenting with, such as swizzling _drawTitleStringIn:withColor: 

Screen Shot 2016-05-12 at 2.02.25 PM.png
22.8 KB View Download

Comment 4 by shrike@chromium.org, May 12 2016

Ah, I see. I didn't really know about this class of window. Yes, in this case we should not add an NSVisualEffectView.

Status: Fixed (was: Assigned)

Sign in to add a comment