twenty icon indicating copy to clipboard operation
twenty copied to clipboard

Two fixes for dark mode.

Open Bonapara opened this issue 1 year ago • 16 comments
trafficstars

1 Color outside the viewport

Current behavior

the body above the content is white in dark mode.

https://github.com/twentyhq/twenty/assets/19412894/c9f434ca-fbe2-4a52-bc88-33363482332f

Desired behavior

It should be background secondary or even better, the noisy background if possible.

https://github.com/twentyhq/twenty/assets/19412894/aa77dad2-3898-4f0a-a3c6-5933342d9e47

2 Default color

Current behavior

The default theme color is light:

Screenshot 2023-12-15 at 18 16 02

Desired behavior

The default theme color should be "System Settings"

Screenshot 2023-12-15 at 18 15 34

Bonapara avatar Dec 15 '23 17:12 Bonapara

Hi @Bonapara

Default Color Scheme is "System"

Screenshot 2023-12-15 at 11 04 42 PM

Kanav-Arora avatar Dec 15 '23 17:12 Kanav-Arora

Hi @Bonapara I found a way to do the noise change please provide me with the color tone you want for both dark as well as light mode

@charlesBochet should I add this color to background.ts

Kanav-Arora avatar Dec 15 '23 17:12 Kanav-Arora

Hi @Bonapara

Default Color Scheme is "System"

@Kanav-Arora, no because workspaceMember.colorScheme is not empty in DB. I think what @Bonapara means is that, when a workspaceMember is created, it should be associated with "System" color scheme by default

Regarding your other question, I am not sure to get it. what do you mean by noise change?

charlesBochet avatar Dec 15 '23 18:12 charlesBochet

WorkspaceMember default state is null and as on line in my screenshot System will be assigned so ig when new member is created System is default?

Regarding noise I'm saying that as Thomas specified that colour should be noisy so I was asking which color do I have to use?

Kanav-Arora avatar Dec 16 '23 03:12 Kanav-Arora

Hi @Kanav-Arora, you can find the "noisy" background in the theme (theme.background.noisy).

thaisguigon avatar Dec 18 '23 09:12 thaisguigon

Hi @thaisguigon The noisy background is same issued in the page whereas the background shown in the issue should be contrasting to the background. Should I go with this only?

Kanav-Arora avatar Dec 18 '23 13:12 Kanav-Arora

@Kanav-Arora I think we want the same, where do you see it different?

charlesBochet avatar Dec 18 '23 14:12 charlesBochet

In the Github reference video Thomas added in the issue description. There's a contrast with the header so do we want some contrast or same noisy background.

Kanav-Arora avatar Dec 18 '23 14:12 Kanav-Arora

Oh true, that's on the Github video example. Let's do something simple and put the same color!

charlesBochet avatar Dec 18 '23 20:12 charlesBochet

Okay I'll put same color only

Kanav-Arora avatar Dec 19 '23 15:12 Kanav-Arora

@Kanav-Arora assigning this issue to you as I see it was discussed. Let us know if you're stuck / how we can help!

FelixMalfait avatar Jan 07 '24 16:01 FelixMalfait

Hi @FelixMalfait Its done sorry I was busy I'll raise a PR soon

Kanav-Arora avatar Jan 07 '24 16:01 Kanav-Arora

@Kanav-Arora great thanks! no problem

FelixMalfait avatar Jan 07 '24 16:01 FelixMalfait

Hi @FelixMalfait

Actually If I'm applying constant colors then its working but with noisy image string its not working

Screenshot 2024-01-07 at 11 04 41 PM

Kanav-Arora avatar Jan 07 '24 17:01 Kanav-Arora

Yes I've experimented that a few years ago too I remember. Let's settle for colors. @Bonapara could you please point @Kanav-Arora to the right colors? Thanks a lot

FelixMalfait avatar Jan 09 '24 14:01 FelixMalfait

Hi @Kanav-Arora,

We should use Background Tertiary, as it closely matches the noisy background:

Screenshot 2024-01-09 at 15 37 03

Thanks a lot!

Bonapara avatar Jan 09 '24 14:01 Bonapara