From 68203bad5285ee125cfa6e4059c1393539f27b2b Mon Sep 17 00:00:00 2001 From: Roland Osborne Date: Tue, 22 Aug 2023 12:43:59 -0700 Subject: [PATCH] adding strings and color for updated ui --- app/mobile/src/constants/Colors.js | 60 +++++++++++++++++ app/mobile/src/constants/Strings.js | 99 +++++++++++++++++++++++++++++ 2 files changed, 159 insertions(+) create mode 100644 app/mobile/src/constants/Strings.js diff --git a/app/mobile/src/constants/Colors.js b/app/mobile/src/constants/Colors.js index eb4a3f83..a64ce598 100644 --- a/app/mobile/src/constants/Colors.js +++ b/app/mobile/src/constants/Colors.js @@ -1,3 +1,63 @@ +export const LightColors = { + tabBar: '#448866', + activeTabIcon: '#ffffff', + idleTabIcon: '#cccccc', + linkText: '#338866', + dangerText: '#ff8888', + labelText: '#555555', + iconText: '#fffff', + unsetText: '#999999', + descriptionText: '#888888', + text: '#444444', + screenBase: '#dddddd', + areaBase: '#ffffff', + headerBar: '#eeeeee', + primaryButton '#448866', + inputBase: '#ffffff', + inputPlaceholder: '#888888', + inputText: '#444444', + connectedIndicator: '#41d041', + connectingIndicator: '#0000cc', + requestedIndicator: '#00bbbb' + pendingIndicator: '#bbbb00', + confirmedIndicator: '#88bb00', + unknownIndicator: '#dddddd', + errorIndicator: '#ffaaaa', + divider: '#eeeeee', + unreadIndicator: '#00aa00', + disconnectedIndicator: '#aa0000', +}; + +export const DarkColors = { + tabBar: '#111111', + activeTabIcon: '#dddddd', + idleTabIcon: '#aaaaaa', + linkText: '#88eecc', + dangerText: '#ffaaaa', + labelText: "#eeeeee', + iconText: '#fffff', + unsetText: '#aaaaaa', + descriptionText: '#bbbbbb', + text: '#ffffff', + screenBase: '#333333', + areaBase: '#555555', + headerBar '#555555', + primaryButton: '#448866', + inputBase: '#ffffff', + inputPlaceholder: '#888888', + inputText: '#444444', + connectedIndicator: '#00cc00', + connectingIndicator: '#0000cc', + requestedIndicator: '#00bbbb' + pendingIndicator: '#bbbb00', + confirmedIndicator: '#88bb00', + unknownIndicator: '#dddddd', + errorIndicator: '#ffaaaa', + divider: '#888888', + unreadIndicator: '#00aa00', + disconnectedIndicator: '#aa0000', +}; + export const Colors = { background: '#8fbea7', primary: '#448866', diff --git a/app/mobile/src/constants/Strings.js b/app/mobile/src/constants/Strings.js new file mode 100644 index 00000000..87ddbdde --- /dev/null +++ b/app/mobile/src/constants/Strings.js @@ -0,0 +1,99 @@ +export getLanguageId(language) { + if (language === 'english') { + return 0; + } + if (language === 'french') { + return 1; + } + if (language === 'spanish') { + return 2; + } + if (language === 'german') { + return 3; + } + return 0; // default +}; + +export const Strings = [ + { + visibleRegistry: 'Visible in Rengistry', + edit: 'Edit', + enableNotifications: 'Enable Notifications', + sealedTopics: 'Sealed Topics', + colorMode: 'Color Mode', + clockMode: 'Hour Format', + language: 'Language', + logout: 'Logout', + changeLogin: 'Change Login', + deleteAccount: 'Delete Account', + contacts: 'Contacts', + topics: 'Topics', + messages: 'Messages', + support: 'Support', + blocked: 'Blocked', + actions: 'Actions', + display: 'Display', + settings: 'Settings', + }, + { + visibleRegistry: 'Visible dans le Registre', + edit: 'Modifier', + enableNotifications: 'Activer les Notifications', + sealedTopics: 'Sujets Sécurisés', + colorMode: 'Mode de Couleur', + clockMode: 'Format d\'Heure', + language: 'Langue', + logout: 'Se Déconnecter', + changeLogin: 'Changer le Mot de Passe', + deleteAccount: 'Supprimer le Compte', + contacts: 'Contacts', + topics: 'Sujets', + messages: 'Messages', + support: 'Aide', + blocked: 'Supprimé', + actions: 'Actions', + display: 'Écran', + settings: 'Configuration', + }, + { + visibleRegistry: 'Visible en el Registro', + edit: 'Editar', + enableNotifications: 'Permitir Notificaciones', + sealedTopics: 'Temas Protegidos', + colorMode: 'Modo de Color', + clockMode: 'Formato de Hora', + language: 'Idioma', + logout: 'Cerrar Sesión', + changeLogin: 'Cambiar la contraseña', + deleteAccount: 'Borrar Cuenta', + contacts: 'Contactos', + topics: 'Temas', + messages: 'Mensajes', + support: 'Ayuda', + blocked: 'Oculto', + actions: 'Métodos', + display: 'Pantalla' + settings: 'Configuración', + }, + { + visibleRegistry: 'Sichtbar in der Registrierung', + edit: 'Bearbeiten', + enableNotifications: 'Benachrichtigungen aktivieren', + sealedTopics: 'Gesicherte Themen', + colorMode: 'Farmodus', + clockMode: 'Stundenformat', + language: 'Sprache', + logout: 'Ausloggen', + changeLogin: 'Kennwort Aktualisieren', + deleteAccount: 'Konto Löschen', + contacts: 'Kontakte', + topics: 'Themen', + messages: 'Mitteilungen', + support: 'Helfen', + blocked: 'Versteckt', + actions: 'Aktionen', + display: 'Bildschirm', + settings: 'Aufbau', + } +]; +