mac: Use transparent window
This commit is contained in:
parent
4fc73117c4
commit
45c41fe880
1 changed files with 7 additions and 0 deletions
|
@ -314,6 +314,13 @@ NativeWindowMac::NativeWindowMac(content::WebContents* web_contents,
|
||||||
[[AtomNSWindowDelegate alloc] initWithShell:this];
|
[[AtomNSWindowDelegate alloc] initWithShell:this];
|
||||||
[window_ setDelegate:delegate];
|
[window_ setDelegate:delegate];
|
||||||
|
|
||||||
|
if (transparent_) {
|
||||||
|
// Make window has transparent background.
|
||||||
|
[window_ setOpaque:NO];
|
||||||
|
[window_ setHasShadow:NO];
|
||||||
|
[window_ setBackgroundColor:[NSColor clearColor]];
|
||||||
|
}
|
||||||
|
|
||||||
// We will manage window's lifetime ourselves.
|
// We will manage window's lifetime ourselves.
|
||||||
[window_ setReleasedWhenClosed:NO];
|
[window_ setReleasedWhenClosed:NO];
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue