diff options
Diffstat (limited to 'app/components/PlatformWindow.js')
| -rw-r--r-- | app/components/PlatformWindow.js | 14 |
1 files changed, 8 insertions, 6 deletions
diff --git a/app/components/PlatformWindow.js b/app/components/PlatformWindow.js index 60f26dd6de..e54ce969e0 100644 --- a/app/components/PlatformWindow.js +++ b/app/components/PlatformWindow.js @@ -1,13 +1,15 @@ // @flow import * as React from 'react'; +import { Component, View, Styles } from 'reactxp'; -type Props = { - children?: React.Node, -}; +const platformWindowStyle = Styles.createViewStyle({ + WebkitMask: ` + url(./assets/images/app-triangle.svg) 50% 0% no-repeat, + url(./assets/images/app-header-backdrop.svg) no-repeat`, +}); -export default class PlatformWindow extends React.Component<Props> { +export default class PlatformWindow extends Component { render() { - const chromeClass = ['window-chrome', 'window-chrome--' + process.platform]; - return <div className={chromeClass.join(' ')}>{this.props.children}</div>; + return <View style={platformWindowStyle}>{this.props.children}</View>; } } |
