small changes in styling. more space beween switch lines, smaller switches in iOS (testing please), less bottom margin for segments

This commit is contained in:
wunderfisch
2024-02-23 15:34:09 +01:00
committed by bl00dymarie
parent 405e27bdbe
commit 4be8f1aa4e
2 changed files with 7 additions and 2 deletions
+6 -1
View File
@@ -4,7 +4,7 @@ import PropTypes from 'prop-types'
import AppText from './app-text' import AppText from './app-text'
import { Colors, Containers } from '../../styles' import { Colors, Containers, Spacing } from '../../styles'
const AppSwitch = ({ onToggle, text, value, disabled }) => { const AppSwitch = ({ onToggle, text, value, disabled }) => {
const trackColor = { true: Colors.turquoiseDark } const trackColor = { true: Colors.turquoiseDark }
@@ -37,6 +37,11 @@ const styles = StyleSheet.create({
}, },
switch: { switch: {
flex: 1, flex: 1,
marginBottom: Spacing.tiny,
transform:
Platform.OS === 'ios'
? [{ scaleX: 0.8 }, { scaleY: 0.8 }]
: [{ scaleX: 1 }, { scaleY: 1 }],
}, },
textContainer: { textContainer: {
flex: 4, flex: 4,
+1 -1
View File
@@ -36,6 +36,6 @@ export default {
}, },
segmentContainer: { segmentContainer: {
marginHorizontal: Spacing.base, marginHorizontal: Spacing.base,
marginBottom: Spacing.base, marginBottom: Spacing.tiny,
}, },
} }