Skip to content
This repository has been archived by the owner on Jun 15, 2022. It is now read-only.

Commit

Permalink
Tablet toggle button styles
Browse files Browse the repository at this point in the history
  • Loading branch information
moughxyz committed Oct 9, 2019
1 parent 0b74186 commit 6713aa7
Showing 1 changed file with 10 additions and 5 deletions.
15 changes: 10 additions & 5 deletions src/screens/Root.js
Expand Up @@ -325,7 +325,7 @@ export default class Root extends Abstract {
let composeStyles = shouldSplitLayout ? [this.styles.right, {width: notesListCollapsed ? "100%" : "60%"}] : null;

const collapseIconPrefix = StyleKit.platformIconPrefix();
const iconNames = {
const iconNames = {
md: ["arrow-dropright", "arrow-dropleft"],
ios: ["arrow-forward", "arrow-back"]
};
Expand All @@ -351,12 +351,12 @@ export default class Root extends Abstract {
navigation={this.props.navigation}
/>

<TouchableHighlight
<TouchableHighlight
underlayColor={StyleKit.variable("stylekitBackgroundColor")}
style={[StyleKit.styles.contrastBackground, this.styles.toggleButton, {bottom: collapseIconBottomPosition}]}
style={[this.styles.toggleButtonContainer, this.styles.toggleButton, {bottom: collapseIconBottomPosition}]}
onPress={this.toggleNoteSideMenu}>
<View>
<Icon name={collapseIconName} size={24} color={StyleKit.variable("stylekitInfoColor")} />
<Icon name={collapseIconName} size={24} color={StyleKit.hexToRGBA(StyleKit.variables.stylekitInfoColor, 0.85)} />
</View>
</TouchableHighlight>
</View>
Expand All @@ -377,12 +377,17 @@ export default class Root extends Abstract {
},
right: {

},
toggleButtonContainer: {
backgroundColor: StyleKit.hexToRGBA(StyleKit.variables.stylekitContrastBackgroundColor, 0.5)
},
toggleButton: {
justifyContent: "center",
position: "absolute",
left: 0,
padding: 2,
padding: 7,
borderTopRightRadius: 4,
borderBottomRightRadius: 4,
marginTop: -12
}
}
Expand Down

0 comments on commit 6713aa7

Please sign in to comment.