Commit 2a3981b3 authored by Elly Fong-Jones's avatar Elly Fong-Jones Committed by Commit Bot

cocoa: use window background for collected cookies

This dialog looks odd with the default white background of a constrained
window.

Bug: 743120
Change-Id: Id9870b246e8d46310870adef2a95ca4f5f4bd0a1
Reviewed-on: https://chromium-review.googlesource.com/746525Reviewed-by: default avatarNico Weber <thakis@chromium.org>
Commit-Queue: Elly Fong-Jones <ellyjones@chromium.org>
Cr-Commit-Position: refs/heads/master@{#512824}
parent c2bbbfb5
...@@ -141,6 +141,8 @@ void CollectedCookiesMac::OnConstrainedWindowClosed( ...@@ -141,6 +141,8 @@ void CollectedCookiesMac::OnConstrainedWindowClosed(
NSImage* infoIcon = rb.GetNativeImageNamed(IDR_INFO).ToNSImage(); NSImage* infoIcon = rb.GetNativeImageNamed(IDR_INFO).ToNSImage();
[infoBarIcon_ setImage:infoIcon]; [infoBarIcon_ setImage:infoIcon];
[self.window setBackgroundColor:[NSColor windowBackgroundColor]];
// Initialize the banner gradient and stroke color. // Initialize the banner gradient and stroke color.
NSColor* bannerStartingColor = NSColor* bannerStartingColor =
[NSColor colorWithCalibratedRed:kBannerGradientColorTop[0] [NSColor colorWithCalibratedRed:kBannerGradientColorTop[0]
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment