Stylin'
This commit is contained in:
+19
-3
@@ -32,7 +32,7 @@ export default class Settings extends Component {
|
||||
<TouchableOpacity
|
||||
onPress={openShareDialogAndExport}
|
||||
style={styles.settingsButton}>
|
||||
<Text>{labels.export.button}</Text>
|
||||
<Text style={styles.settingsButtonText}>{labels.export.button}</Text>
|
||||
</TouchableOpacity>
|
||||
</View>
|
||||
<View style={styles.settingsSegment}>
|
||||
@@ -41,7 +41,7 @@ export default class Settings extends Component {
|
||||
<TouchableOpacity
|
||||
onPress={openImportDialogAndImport}
|
||||
style={styles.settingsButton}>
|
||||
<Text>{labels.import.button}</Text>
|
||||
<Text style={styles.settingsButtonText}>{labels.import.button}</Text>
|
||||
</TouchableOpacity>
|
||||
</View>
|
||||
</ScrollView>
|
||||
@@ -82,7 +82,7 @@ class TempSlider extends Component {
|
||||
|
||||
render() {
|
||||
return (
|
||||
<View>
|
||||
<View style={{alignItems: 'center'}}>
|
||||
<Text>{`${labels.tempScale.min} ${this.state.min}`}</Text>
|
||||
<Text>{`${labels.tempScale.max} ${this.state.max}`}</Text>
|
||||
<Slider
|
||||
@@ -92,6 +92,22 @@ class TempSlider extends Component {
|
||||
step={0.5}
|
||||
onValuesChange={this.onValuesChange}
|
||||
onValuesChangeFinish={this.onValuesChangeFinish}
|
||||
selectedStyle={{
|
||||
backgroundColor: 'darkgrey',
|
||||
}}
|
||||
unselectedStyle={{
|
||||
backgroundColor: 'silver',
|
||||
}}
|
||||
trackStyle={{
|
||||
height:10,
|
||||
}}
|
||||
markerStyle={{
|
||||
backgroundColor: '#351c4d',
|
||||
height: 20,
|
||||
width: 20,
|
||||
borderRadius: 100,
|
||||
marginTop: 10
|
||||
}}
|
||||
/>
|
||||
</View>
|
||||
)
|
||||
|
||||
+4
-1
@@ -98,9 +98,12 @@ export default StyleSheet.create({
|
||||
fontWeight: 'bold'
|
||||
},
|
||||
settingsButton: {
|
||||
backgroundColor: 'darkgrey',
|
||||
backgroundColor: '#351c4d',
|
||||
padding: 10,
|
||||
alignItems: 'center',
|
||||
margin: 10
|
||||
},
|
||||
settingsButtonText: {
|
||||
color: 'white'
|
||||
}
|
||||
})
|
||||
Reference in New Issue
Block a user