summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorAndrej Mihajlov <and@mullvad.net>2018-01-02 11:06:10 +0100
committerAndrej Mihajlov <and@mullvad.net>2018-01-08 14:31:20 +0100
commitff84229de6ff696d31bc40e6e08ecb14fbd789ce (patch)
treea4853b528a13f98142ce8933c98374076401f021
parente8aa325c5c9f20402af01fa3f9a81971adb01805 (diff)
downloadmullvadvpn-ff84229de6ff696d31bc40e6e08ecb14fbd789ce.tar.xz
mullvadvpn-ff84229de6ff696d31bc40e6e08ecb14fbd789ce.zip
Refine HeaderBar styles
-rw-r--r--app/components/HeaderBar.js8
-rw-r--r--app/components/HeaderBarStyles.js10
2 files changed, 8 insertions, 10 deletions
diff --git a/app/components/HeaderBar.js b/app/components/HeaderBar.js
index c2e02cc35c..50ab49d39f 100644
--- a/app/components/HeaderBar.js
+++ b/app/components/HeaderBar.js
@@ -49,11 +49,9 @@ export default class HeaderBar extends Component {
: null}
{this.props.showSettings ?
- <View style={styles.headerbar__settings}>
- <Button onPress={ this.props.onSettings } testName="headerbar__settings">
- <Img style={ styles.headerbar__settings } source='icon-settings'/>
- </Button>
- </View>
+ <Button style={ styles.headerbar__settings } onPress={ this.props.onSettings } testName="headerbar__settings">
+ <Img source='icon-settings' style={ styles.headerbar__settings_icon } />
+ </Button>
: null}
</View>
);
diff --git a/app/components/HeaderBarStyles.js b/app/components/HeaderBarStyles.js
index 5e80f4f635..bc7b982a41 100644
--- a/app/components/HeaderBarStyles.js
+++ b/app/components/HeaderBarStyles.js
@@ -56,14 +56,14 @@ const styles = {
height: 50,
width: 50,
}),
- headerbar__settings:
+ headerbar__settings: {
+ padding: 0
+ },
+ headerbar__settings_icon:
Styles.createViewStyle({
width: 24,
height: 24,
- backgroundColor: 'transparent',
- marginLeft: -6, //Because of button.css, when removed remove this
- marginTop: -1, //Because of button.css, when removed remove this
- })
+ }),
};
module.exports = styles;