Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Transparent WebView



> Scrap that as it gives the webview content transparency as well. You'll
> need to subclass window and set it such that the background is not
> drawn. I.e.:
> 
> 
> - (id)initWithContentRect:(NSRect)contentRect styleMask:(unsigned
> int)aStyle
> backing:(NSBackingStoreType)bufferingType defer:(BOOL)flag
> {
> #pragma unused(aStyle)
>    if ( ( self = [super initWithContentRect:contentRect
> styleMask:NSBorderlessWindowMask
> backing:bufferingType defer:flag] ) )
> {
>        [self setBackgroundColor:[NSColor clearColor]];
>        [self setAlphaValue:0.0];
>        [self setOpaque:NO];
>        [self setHasShadow:NO];
>        return self;
>    }
>    return nil;
> }

Yeah, I'm already doing that and it works fine -- the app's window is
transparent.  But the WebViews still have an opaque white background color
even if the web page's style sheet specifies transparency.

thanks,
Craig

-- 
Dr. Craig A. Hunter
NASA Langley Research Center
AAAC / Configuration Aerodynamics Branch
(757) 864-3020
email@hidden

 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Webkitsdk-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webkitsdk-dev/email@hidden

This email sent to email@hidden

References: 
 >Re: Transparent WebView (From: Adriaan Tijsseling <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.