From 0be8ebb6a30b905a8aa272a315f1b1882023f630 Mon Sep 17 00:00:00 2001 From: Isla Koenigsknecht Date: Fri, 12 Jul 2024 12:09:40 -0400 Subject: [PATCH 1/2] Update hover and selected contrast and modify sidebar color in dark mode --- .../Sidebar/ChannelsPanel/ChannelsListItem.tsx | 12 +++++++++++- packages/desktop/src/renderer/theme.ts | 8 +++++--- 2 files changed, 16 insertions(+), 4 deletions(-) diff --git a/packages/desktop/src/renderer/components/Sidebar/ChannelsPanel/ChannelsListItem.tsx b/packages/desktop/src/renderer/components/Sidebar/ChannelsPanel/ChannelsListItem.tsx index 56790eb635..920acbc359 100644 --- a/packages/desktop/src/renderer/components/Sidebar/ChannelsPanel/ChannelsListItem.tsx +++ b/packages/desktop/src/renderer/components/Sidebar/ChannelsPanel/ChannelsListItem.tsx @@ -21,7 +21,17 @@ const classes = { const StyledListItemButton = styled(ListItemButton)(({ theme }) => ({ [`&.${classes.root}`]: { - padding: 0, + width: 220, + height: 'hug', + padding: `3px 16px 3px 16px`, + gap: 4, + opacity: 1, + display: 'flex', + backgroundColor: 'inherit', + }, + + [`&.${classes.root}:hover`]: { + backgroundColor: theme.palette.colors.sidebarHover, }, [`&.${classes.selected}`]: { diff --git a/packages/desktop/src/renderer/theme.ts b/packages/desktop/src/renderer/theme.ts index 9299ace107..9f5d3fbd85 100644 --- a/packages/desktop/src/renderer/theme.ts +++ b/packages/desktop/src/renderer/theme.ts @@ -121,7 +121,8 @@ const lightTheme = createTheme({ border03: '#D2D2D2', // Other custom colors sidebarBackground: '#511974', - sidebarSelected: '#fff3', + sidebarSelected: '#FFFFFF19', + sidebarHover: '#FFFFFF0C', }, }, //@ts-ignore MUI types expect 25 shadows - see: https://github.com/mui/material-ui/issues/28820 @@ -344,8 +345,9 @@ const darkTheme = createTheme({ border02: '#B3B3B3', border03: '#D2D2D2', // Gradients and other run-of-the-mill things - sidebarBackground: '#000', - sidebarSelected: '#fff3', + sidebarBackground: '#2F193D', + sidebarSelected: '#FFFFFF19', + sidebarHover: '#FFFFFF0C', }, }, //@ts-ignore MUI types expect 25 shadows - see: https://github.com/mui/material-ui/issues/28820 From 47406fd2e0e630aa5b1149e934ec377f00eb2981 Mon Sep 17 00:00:00 2001 From: Isla Koenigsknecht Date: Fri, 12 Jul 2024 12:28:47 -0400 Subject: [PATCH 2/2] Update snapshots --- .../ChannelsPanel/ChannelsPanel.test.tsx | 24 +++++++++---------- .../renderer/components/windows/Main.test.tsx | 4 ++-- 2 files changed, 14 insertions(+), 14 deletions(-) diff --git a/packages/desktop/src/renderer/components/Sidebar/ChannelsPanel/ChannelsPanel.test.tsx b/packages/desktop/src/renderer/components/Sidebar/ChannelsPanel/ChannelsPanel.test.tsx index 6c062c84a4..cea9516723 100644 --- a/packages/desktop/src/renderer/components/Sidebar/ChannelsPanel/ChannelsPanel.test.tsx +++ b/packages/desktop/src/renderer/components/Sidebar/ChannelsPanel/ChannelsPanel.test.tsx @@ -134,7 +134,7 @@ describe('Channels panel', () => { data-testid="channelsList" >
{ />
{ />
{ />
{ />
{ />
{ data-testid="channelsList" >
{ />
{ />
{ />
{ />
{ />
{ class="MuiGrid-root MuiGrid-item css-13i4rnv-MuiGrid-root" >
{ data-testid="channelsList" >