diff options
| author | anderklander <anderklander@gmail.com> | 2018-02-15 11:23:20 +0100 |
|---|---|---|
| committer | anderklander <anderklander@gmail.com> | 2018-02-15 16:02:03 +0100 |
| commit | eaea1e3cd0e93e8a5852551d5ea58a0ec739abac (patch) | |
| tree | 1beca6806c4ea95140b3bb57465bb1b840c0a8f2 /app/components/styled/CellButton.js | |
| parent | 1eab34a1cbd2480a4afc9bb9b6d8db810c8342be (diff) | |
| download | mullvadvpn-eaea1e3cd0e93e8a5852551d5ea58a0ec739abac.tar.xz mullvadvpn-eaea1e3cd0e93e8a5852551d5ea58a0ec739abac.zip | |
Some style updates
Diffstat (limited to 'app/components/styled/CellButton.js')
| -rw-r--r-- | app/components/styled/CellButton.js | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/app/components/styled/CellButton.js b/app/components/styled/CellButton.js index b11c2171e6..ca5b0a3739 100644 --- a/app/components/styled/CellButton.js +++ b/app/components/styled/CellButton.js @@ -10,16 +10,15 @@ import { createViewStyles } from '../../lib/styles'; const styles = { ...createViewStyles({ cell:{ - paddingTop: 15, - paddingBottom: 15, - paddingLeft: 24, - paddingRight: 24, + paddingTop: 14, + paddingBottom: 14, + paddingLeft: 16, + paddingRight: 16, marginBottom: 1, flex: 1, flexDirection: 'row', alignItems: 'center', alignContent: 'center', - justifyContent: 'space-between' }, blue:{ backgroundColor: colors.blue80, @@ -39,23 +38,24 @@ const styles = { white: { color: colors.white, }, - relative: { + icon: { position: 'relative', alignSelf: 'center', + marginLeft: 8, }, }), }; export default class CellButton extends Component { props: { - children: React.Element<*>, + children: Array<React.Element<*>> | React.Element<*>, disabled: boolean, }; state = { hovered: false }; textStyle = () => this.state.hovered ? styles.white80 : styles.white; - iconStyle = () => this.state.hovered ? styles.white80 : styles.white; + iconStyle = () => this.state.hovered ? styles.white40 : styles.white60; subtextStyle = () => this.state.hovered ? styles.white40 : styles.white60; backgroundStyle = () => this.state.hovered ? styles.blueHover : styles.blue; @@ -79,7 +79,7 @@ export default class CellButton extends Component { } if(node.type.name === 'Icon') { - updatedProps = { style: [this.iconStyle(), styles.relative, node.props.style]}; + updatedProps = { style: [this.iconStyle(), styles.icon, node.props.style]}; } if(node.type.name === 'SubText') { |
