styling placeholders consistenlty

This commit is contained in:
balzack 2023-10-07 23:36:22 -07:00
parent 9cfa108a0c
commit 3f84ca6429
4 changed files with 24 additions and 9 deletions

View File

@ -285,8 +285,8 @@ export function Dashboard(props) {
</TouchableOpacity> </TouchableOpacity>
</View> </View>
<View style={styles.modalControls}> <View style={styles.modalControls}>
<TouchableOpacity style={styles.cancel} onPress={actions.hideAddUser}> <TouchableOpacity style={styles.close} onPress={actions.hideAddUser}>
<Text style={styles.cancelText}>{ state.strings.close }</Text> <Text style={styles.closeText}>{ state.strings.close }</Text>
</TouchableOpacity> </TouchableOpacity>
</View> </View>
</View> </View>
@ -316,8 +316,8 @@ export function Dashboard(props) {
</TouchableOpacity> </TouchableOpacity>
</View> </View>
<View style={styles.modalControls}> <View style={styles.modalControls}>
<TouchableOpacity style={styles.cancel} onPress={actions.hideAccessUser}> <TouchableOpacity style={styles.close} onPress={actions.hideAccessUser}>
<Text style={styles.cancelText}>{ state.strings.close }</Text> <Text style={styles.closeText}>{ state.strings.close }</Text>
</TouchableOpacity> </TouchableOpacity>
</View> </View>
</View> </View>

View File

@ -101,9 +101,21 @@ export const styles = StyleSheet.create({
display: 'flex', display: 'flex',
alignItems: 'center', alignItems: 'center',
}, },
cancel: { close: {
borderWidth: 1, borderWidth: 1,
borderColor: Colors.lightgrey, borderColor: Colors.closeButton,
borderRadius: 4,
padding: 6,
marginRight: 8,
width: 92,
display: 'flex',
alignItems: 'center',
},
closeText: {
color: Colors.closeButtonText,
},
cancel: {
backgroundColor: Colors.cancelButton,
borderRadius: 4, borderRadius: 4,
padding: 6, padding: 6,
marginRight: 8, marginRight: 8,

View File

@ -118,7 +118,7 @@ export function Channels({ cardId, channelId, navigation, openConversation, dmCh
{ state.contacts.length == 0 && ( { state.contacts.length == 0 && (
<View style={styles.emptyMembers}> <View style={styles.emptyMembers}>
<Text style={styles.empty}>{ state.strings.noContacts }</Text> <Text style={styles.notfoundtext}>{ state.strings.noContacts }</Text>
</View> </View>
)} )}
{ state.contacts.length > 0 && ( { state.contacts.length > 0 && (

View File

@ -89,8 +89,8 @@ export const styles = StyleSheet.create({
justifyContent: 'center', justifyContent: 'center',
}, },
notfoundtext: { notfoundtext: {
fontSize: 18, fontSize: 20,
color: Colors.disabled, color: Colors.unsetText,
}, },
columnbottom: { columnbottom: {
paddingLeft: 24, paddingLeft: 24,
@ -129,6 +129,9 @@ export const styles = StyleSheet.create({
marginTop: 16, marginTop: 16,
height: 200, height: 200,
}, },
empty: {
color: Colors.descriptionText,
},
emptyMembers: { emptyMembers: {
width: '100%', width: '100%',
borderWidth: 1, borderWidth: 1,