styling for dark mode

This commit is contained in:
balzack 2023-09-29 18:44:11 -07:00
parent 401e614ee9
commit daf4732406
7 changed files with 17 additions and 5 deletions

View File

@ -21,6 +21,7 @@ const LightColors = {
drawerBase: '#eeeeee', drawerBase: '#eeeeee',
areaBase: '#ffffff', areaBase: '#ffffff',
modalBase: '#ffffff', modalBase: '#ffffff',
modalBorder: '#555555',
modalOverlay: 'rgba(52,52,52,0.8)', modalOverlay: 'rgba(52,52,52,0.8)',
headerBar: '#eeeeee', headerBar: '#eeeeee',
primaryButton: '#448866', primaryButton: '#448866',
@ -81,7 +82,8 @@ const DarkColors = {
screenBase: '#222222', screenBase: '#222222',
drawerBase: '#333333', drawerBase: '#333333',
areaBase: '#444444', areaBase: '#444444',
modalBase: '#333333', modalBase: '#1b1b1b',
modalBorder: '#555555',
modalOverlay: 'rgba(88,88,88,0.8)', modalOverlay: 'rgba(88,88,88,0.8)',
headerBar: '#555555', headerBar: '#555555',
primaryButton: '#448866', primaryButton: '#448866',
@ -145,6 +147,7 @@ export const Colors = {
screenBase: getColor('screenBase'), screenBase: getColor('screenBase'),
drawerBase: getColor('drawerBase'), drawerBase: getColor('drawerBase'),
areaBase: getColor('areaBase'), areaBase: getColor('areaBase'),
modalBorder: getColor('modalBorder'),
modalOverlay: getColor('modalOverlay'), modalOverlay: getColor('modalOverlay'),
modalBase: getColor('modalBase'), modalBase: getColor('modalBase'),
headerBar: getColor('headerBar'), headerBar: getColor('headerBar'),

View File

@ -129,6 +129,7 @@ const Strings = [
create: 'Create', create: 'Create',
sealed: 'Sealed', sealed: 'Sealed',
newTopic: 'New Topic', newTopic: 'New Topic',
new: 'New',
// details // details
topic: 'Topic', topic: 'Topic',
@ -267,7 +268,8 @@ const Strings = [
subject: 'Titre (optionnel)', subject: 'Titre (optionnel)',
create: 'Créer', create: 'Créer',
sealed: 'Protégé', sealed: 'Protégé',
newTopic: 'Nourveau Sujet', newTopic: 'Nouveau Sujet',
new: 'Nouveau',
// details // details
topic: 'Sujet', topic: 'Sujet',
@ -407,6 +409,7 @@ const Strings = [
create: 'Crear', create: 'Crear',
sealed: 'Protegida', sealed: 'Protegida',
newTopic: 'Nuevo Tema', newTopic: 'Nuevo Tema',
new: 'Nuevo',
// details // details
topic: 'Tema', topic: 'Tema',
@ -546,6 +549,7 @@ const Strings = [
create: 'Erstellen', create: 'Erstellen',
sealed: 'Gesichert', sealed: 'Gesichert',
newTopic: 'Neues Thema', newTopic: 'Neues Thema',
new: 'Neu',
// details // details
topic: 'Thema', topic: 'Thema',

View File

@ -158,7 +158,7 @@ function ContactStackScreen({ addChannel }) {
<SafeAreaView edges={['left', 'right']} style={styles.body}> <SafeAreaView edges={['left', 'right']} style={styles.body}>
<ContactStack.Navigator screenOptions={({ route }) => (screenParams)} initialRouteName="cards"> <ContactStack.Navigator screenOptions={({ route }) => (screenParams)} initialRouteName="cards">
<ContactStack.Screen name="cards" options={{ ...stackParams, headerTitle: (props) => ( <ContactStack.Screen name="cards" options={{ ...stackParams, cardStyle: {backgroundColor: Colors.screenBase}, headerTitle: (props) => (
<CardsHeader filter={filter} setFilter={setFilter} sort={sort} setSort={setSort} openRegistry={openRegistry} /> <CardsHeader filter={filter} setFilter={setFilter} sort={sort} setSort={setSort} openRegistry={openRegistry} />
)}}> )}}>
{(props) => <CardsBody filter={filter} sort={sort} openContact={(contact) => openContact(props.navigation, contact)} addChannel={addChannel} />} {(props) => <CardsBody filter={filter} sort={sort} openContact={(contact) => openContact(props.navigation, contact)} addChannel={addChannel} />}
@ -168,7 +168,7 @@ function ContactStackScreen({ addChannel }) {
{(props) => <Contact contact={contact} back={props.navigation.goBack} />} {(props) => <Contact contact={contact} back={props.navigation.goBack} />}
</ContactStack.Screen> </ContactStack.Screen>
<ContactStack.Screen name="registry" options={{ ...stackParams, headerTitle: (props) => ( <ContactStack.Screen name="registry" options={{ ...stackParams, cardStyle: {backgroundColor: Colors.screenBase}, headerTitle: (props) => (
<RegistryHeader search={search} setSearch={setSearch} handle={handle} setHandle={setHandle} server={server} setServer={setServer} /> <RegistryHeader search={search} setSearch={setSearch} handle={handle} setHandle={setHandle} server={server} setServer={setServer} />
)}}> )}}>
{(props) => <RegistryBody search={search} handle={handle} server={server} openContact={(contact) => openContact(props.navigation, contact)} />} {(props) => <RegistryBody search={search} handle={handle} server={server} openContact={(contact) => openContact(props.navigation, contact)} />}

View File

@ -52,7 +52,7 @@ export function Channels({ cardId, channelId, navigation, openConversation, dmCh
</View> </View>
<TouchableOpacity style={styles.addtop} onPress={actions.showAdding}> <TouchableOpacity style={styles.addtop} onPress={actions.showAdding}>
<Ionicons name={'message1'} size={16} color={Colors.white} style={[styles.box, { transform: [ { rotateY: "180deg" }, ]} ]}/> <Ionicons name={'message1'} size={16} color={Colors.white} style={[styles.box, { transform: [ { rotateY: "180deg" }, ]} ]}/>
<Text style={styles.addtext}>New</Text> <Text style={styles.addtext}>{ state.strings.new }</Text>
</TouchableOpacity> </TouchableOpacity>
</View> </View>
), ),

View File

@ -119,6 +119,7 @@ export const styles = StyleSheet.create({
alignItems: 'flex-start', alignItems: 'flex-start',
justifyContent: 'center', justifyContent: 'center',
flex: 1, flex: 1,
paddingLeft: 16,
}, },
details: { details: {
minHeight: 32, minHeight: 32,

View File

@ -148,6 +148,8 @@ export const styles = StyleSheet.create({
display: 'flex', display: 'flex',
alignItems: 'center', alignItems: 'center',
borderRadius: 8, borderRadius: 8,
borderWidth: 1,
borderColor: Colors.modalBorder,
}, },
modalHeader: { modalHeader: {
fontSize: 18, fontSize: 18,

View File

@ -23,6 +23,8 @@ export const styles = StyleSheet.create({
display: 'flex', display: 'flex',
alignItems: 'center', alignItems: 'center',
borderRadius: 8, borderRadius: 8,
borderWidth: 1,
borderColor: Colors.modalBorder,
}, },
modalHeader: { modalHeader: {
fontSize: 18, fontSize: 18,