Skip to content

Instantly share code, notes, and snippets.

@primalmotion
Created January 3, 2011 10:42
Show Gist options
  • Select an option

  • Save primalmotion/763341 to your computer and use it in GitHub Desktop.

Select an option

Save primalmotion/763341 to your computer and use it in GitHub Desktop.
@implementation TNModalWindow: CPWindow
#if PLATFORM(DOM)
- (id)initWithContentRect:(CPRect)aFrame styleMask:(id)aMask
{
if (self = [super initWithContentRect:aFrame styleMask:CPBorderlessWindowMask])
{
_windowView._DOMElement.style.background = "-webkit-gradient(linear, left top, left bottom, from(#F4F4F4), to(#D2D2D2))";
_windowView._DOMElement.style.background = "-moz-linear-gradient(-90deg, #F4F4F4, #D2D2D2)";
_windowView._DOMElement.style.border = "1px solid white";
_windowView._DOMElement.style.borderRadius = "6px";
_windowView._DOMElement.style.mozBorderRadius = "6px";
_windowView._DOMElement.style.webkitBoxShadow = "0px 0px 10px #8DB9D1";
_windowView._DOMElement.style.mozBoxShadow = "0px 0px 10px #8DB9D1";
_windowView._DOMElement.style.webkitTransition = "0.5s";
_windowView._DOMElement.style.webkitPerspective = 1000;
}
return self;
}
#endif
@end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment