Created
January 3, 2011 10:42
-
-
Save primalmotion/763341 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| @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