DescriptionToggle avatar color when window activation changes.
On Windows 10 in particular, active and inactive windows may have very different frame colors, and the incognito icon for one may be invisible on the other.
We should probably also consider toggling the TOOLBAR_TOP_SEPARATOR_COLOR. That also makes me wonder if this is the right way to do this; perhaps both these should have _INACTIVE colors and whatever draws the frame in the correct color should draw these as well.
It's also not clear to me whether the nonclient view really needs the widget destruction overload (as noted in a comment).
BUG=none
TEST=Run Chrome on Windows 10 with window titlebars set to a dark color. Open an incognito window. Toggle the window between active and inactive and check that the incognito icon toggles between white and grey.
Committed: https://crrev.com/8aecb326e01ed668003bcc72bda50ca64c768d16
Cr-Commit-Position: refs/heads/master@{#381868}
Patch Set 1 #Patch Set 2 : Checkpoint #Patch Set 3 : Rebase; change color utils #Patch Set 4 : Fix merge #Patch Set 5 : Checkpoint #Patch Set 6 : Resync #Patch Set 7 : Checkpoint #Patch Set 8 : Rebase #Patch Set 9 : Fix bad rebase #
Total comments: 2
Patch Set 10 : Convert widget observer to direct call #
Depends on Patchset: Messages
Total messages: 15 (6 generated)
|