settings style verbessert

This commit is contained in:
2024-09-15 18:21:28 +02:00
parent 5495cf59a5
commit 94047882cc
2 changed files with 4 additions and 9 deletions

View File

@@ -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,
},

View File

@@ -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