settings style verbessert
This commit is contained in:
@@ -93,6 +93,7 @@ export const ThemeTextInput = ({ style, value, disabled, onValueChange, secureTe
|
||||
borderRadius: 8,
|
||||
paddingRight: 14,
|
||||
paddingLeft: 8,
|
||||
paddingVertical: 1,
|
||||
borderColor: disabled ? colors.textDisabled : colors.text,
|
||||
borderWidth: 1,
|
||||
},
|
||||
@@ -100,6 +101,7 @@ export const ThemeTextInput = ({ style, value, disabled, onValueChange, secureTe
|
||||
flex: 1,
|
||||
paddingVertical: 10,
|
||||
paddingRight: 10,
|
||||
height: 45,
|
||||
backgroundColor: colors.backPrimary,
|
||||
color: disabled ? colors.textDisabled : colors.text,
|
||||
},
|
||||
|
||||
@@ -69,7 +69,8 @@ const Settings = () => {
|
||||
},
|
||||
label: {
|
||||
fontWeight: 'bold',
|
||||
marginBottom: 8,
|
||||
marginTop: 8,
|
||||
marginBottom: 6,
|
||||
},
|
||||
title: {
|
||||
fontWeight: 'bold',
|
||||
@@ -85,15 +86,10 @@ const Settings = () => {
|
||||
justifyContent: 'space-between',
|
||||
alignItems: 'center',
|
||||
},
|
||||
input: {
|
||||
padding: 10,
|
||||
marginBottom: 20,
|
||||
},
|
||||
switchContainer: {
|
||||
flexDirection: 'row',
|
||||
alignItems: 'center',
|
||||
justifyContent: 'space-between',
|
||||
paddingVertical: 5,
|
||||
},
|
||||
activityindicator: {
|
||||
position: 'absolute',
|
||||
@@ -114,7 +110,6 @@ const Settings = () => {
|
||||
<ThemeText style={styles.title}>Server</ThemeText>
|
||||
<ThemeText style={styles.label}>URL</ThemeText>
|
||||
<ThemeTextInput
|
||||
style={[styles.input]}
|
||||
value={url}
|
||||
onValueChange={handleChange(setUrl)}
|
||||
placeholder="URL"
|
||||
@@ -129,7 +124,6 @@ const Settings = () => {
|
||||
|
||||
<ThemeText style={styles.label}>Benutzername</ThemeText>
|
||||
<ThemeTextInput
|
||||
style={[styles.input]}
|
||||
value={username}
|
||||
onValueChange={handleChange(setUsername)}
|
||||
placeholder="Benutzername"
|
||||
@@ -137,7 +131,6 @@ const Settings = () => {
|
||||
/>
|
||||
<ThemeText style={styles.label}>Passwort</ThemeText>
|
||||
<ThemeTextInput
|
||||
style={[styles.input]}
|
||||
value={password}
|
||||
onValueChange={handleChange(setPassword)}
|
||||
secureTextEntry
|
||||
|
||||
Reference in New Issue
Block a user