From 19f01c57c5c6f44801733ab94de953aa3ad917bb Mon Sep 17 00:00:00 2001 From: Roland Osborne Date: Thu, 15 Feb 2024 23:40:23 -0800 Subject: [PATCH] updating channel component --- net/web/src/constants/Colors.js | 18 ++++--- net/web/src/constants/Strings.js | 10 ++++ net/web/src/session/channels/Channels.jsx | 22 ++++---- .../src/session/channels/Channels.styled.js | 52 +++++++++++++++---- .../channels/channelItem/ChannelItem.jsx | 4 +- .../channelItem/ChannelItem.styled.js | 13 ++--- .../src/session/channels/useChannels.hook.js | 6 ++- .../src/session/identity/Identity.styled.js | 4 +- 8 files changed, 89 insertions(+), 40 deletions(-) diff --git a/net/web/src/constants/Colors.js b/net/web/src/constants/Colors.js index 89c390e6..fe260e89 100644 --- a/net/web/src/constants/Colors.js +++ b/net/web/src/constants/Colors.js @@ -41,7 +41,9 @@ export const LightTheme = { headerArea: '#f2f2f2', footerArea: '#f2f2f2', itemArea: '#f8f8f8', + inputArea: '#ffffff', hoverArea: '#efefef', + noticeArea: '#8fbea7', selectedArea: '#e8e8e8', enabledArea: '#448866', disabledArea: '#cccccc', @@ -53,16 +55,19 @@ export const LightTheme = { linkText: '#448866', labelText: '#888888', alertText: '#ff8888', - itemLine: '#eeeeee', - sectionLine: '#dddddd', - headerLine: '#aaaaaa', + itemBorder: '#eeeeee', + inputBorder: '#888888', + sectionBorder: '#dddddd', + headerBorder: '#aaaaaa', }; export const DarkTheme = { headerArea: '#111111', footerArea: '#111111', itemArea: '#222222', + inputArea: '#000000', hoverArea: '#2f2f2f', + noticeArea: '#8fbea7', selectedArea: '#333333', enabledArea: '#448866', disabledArea: '#888888', @@ -74,8 +79,9 @@ export const DarkTheme = { linkText: '#448866', labelText: '#dddddd', alertText: '#ff8888', - itemLine: '#555555', - sectionLine: '#777777', - headerLine: '#aaaaaa', + itemBorder: '#555555', + inputBorder: '#aaaaaa', + sectionBorder: '#777777', + headerBorder: '#aaaaaa', }; diff --git a/net/web/src/constants/Strings.js b/net/web/src/constants/Strings.js index b5b72010..932c19e9 100644 --- a/net/web/src/constants/Strings.js +++ b/net/web/src/constants/Strings.js @@ -9,6 +9,11 @@ export const en = { allDevices: 'Logout of all devices', ok: 'OK', cancel: 'Cancel', + + newMessage: 'New Message', + topics: 'Topics', + unsetSealing: 'Unset Sealing Key', + newTopic: 'New Topic', }; export const fr = { @@ -22,5 +27,10 @@ export const fr = { allDevices: 'Déconnexion de tous les appareils', ok: 'OK', cancel: 'Annuler', + + newMessage: 'Nouveau Message', + topics: 'Sujets', + unsetSealing: 'Clé de sécurité non définie', + newTopic: 'Nouveau Sujet', }; diff --git a/net/web/src/session/channels/Channels.jsx b/net/web/src/session/channels/Channels.jsx index 264b69b7..9bee6fb0 100644 --- a/net/web/src/session/channels/Channels.jsx +++ b/net/web/src/session/channels/Channels.jsx @@ -16,38 +16,38 @@ export function Channels({ open, active }) { return ( -