This commit is contained in:
Julia Friesel
2018-08-21 15:05:52 +02:00
parent 75f5893b0c
commit b4120d99d6
2 changed files with 23 additions and 4 deletions
+19 -3
View File
@@ -32,7 +32,7 @@ export default class Settings extends Component {
<TouchableOpacity <TouchableOpacity
onPress={openShareDialogAndExport} onPress={openShareDialogAndExport}
style={styles.settingsButton}> style={styles.settingsButton}>
<Text>{labels.export.button}</Text> <Text style={styles.settingsButtonText}>{labels.export.button}</Text>
</TouchableOpacity> </TouchableOpacity>
</View> </View>
<View style={styles.settingsSegment}> <View style={styles.settingsSegment}>
@@ -41,7 +41,7 @@ export default class Settings extends Component {
<TouchableOpacity <TouchableOpacity
onPress={openImportDialogAndImport} onPress={openImportDialogAndImport}
style={styles.settingsButton}> style={styles.settingsButton}>
<Text>{labels.import.button}</Text> <Text style={styles.settingsButtonText}>{labels.import.button}</Text>
</TouchableOpacity> </TouchableOpacity>
</View> </View>
</ScrollView> </ScrollView>
@@ -82,7 +82,7 @@ class TempSlider extends Component {
render() { render() {
return ( return (
<View> <View style={{alignItems: 'center'}}>
<Text>{`${labels.tempScale.min} ${this.state.min}`}</Text> <Text>{`${labels.tempScale.min} ${this.state.min}`}</Text>
<Text>{`${labels.tempScale.max} ${this.state.max}`}</Text> <Text>{`${labels.tempScale.max} ${this.state.max}`}</Text>
<Slider <Slider
@@ -92,6 +92,22 @@ class TempSlider extends Component {
step={0.5} step={0.5}
onValuesChange={this.onValuesChange} onValuesChange={this.onValuesChange}
onValuesChangeFinish={this.onValuesChangeFinish} onValuesChangeFinish={this.onValuesChangeFinish}
selectedStyle={{
backgroundColor: 'darkgrey',
}}
unselectedStyle={{
backgroundColor: 'silver',
}}
trackStyle={{
height:10,
}}
markerStyle={{
backgroundColor: '#351c4d',
height: 20,
width: 20,
borderRadius: 100,
marginTop: 10
}}
/> />
</View> </View>
) )
+4 -1
View File
@@ -98,9 +98,12 @@ export default StyleSheet.create({
fontWeight: 'bold' fontWeight: 'bold'
}, },
settingsButton: { settingsButton: {
backgroundColor: 'darkgrey', backgroundColor: '#351c4d',
padding: 10, padding: 10,
alignItems: 'center', alignItems: 'center',
margin: 10 margin: 10
},
settingsButtonText: {
color: 'white'
} }
}) })