Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Dark theme issues #1017

Open
Symbai opened this issue Oct 17, 2021 · 18 comments
Open

Dark theme issues #1017

Symbai opened this issue Oct 17, 2021 · 18 comments
Labels
🏭 enhancement New feature or request 🤔 pending discussion It may take time to discuss.

Comments

@Symbai
Copy link

Symbai commented Oct 17, 2021

  1. WPF's GridSplitter is not themed
    image
  2. Selected/Active TabControl header foreground color is probably too dark. Its kinda hard to read. I think it would be better if its get the light blue color background as in bottom right (Title4) but as foreground
    image

Nuget version: 3.2.0 but you can also repro in master branch.

@NaBian
Copy link
Member

NaBian commented Oct 18, 2021

@ghost1372 what do you think?

@Yopler
Copy link

Yopler commented Oct 18, 2021

If I propose my point of vue :
I have the same feeling concerning the dark mode, color are too saturated (not sure that the right word 😅). The most obvious exemple is to read the code example in the demo :
image

In design, if you have a dark mode, color are useally less saturated (here again not sure of the word), like pastel. The goal is to have less agressiv colors for the user.
Here an extreme exemple :
image
image

@Yopler
Copy link

Yopler commented Oct 18, 2021

@NaBian do you have a design system for Handy Control ?

@ghost1372
Copy link
Member

hmm....
how about this?
Untitled

or this
Untitled2

@ghost1372
Copy link
Member

@NaBian do you have a design system for Handy Control ?

look here
https://ant.design/components/tabs/

@Yopler
Copy link

Yopler commented Oct 18, 2021

Nice, You use ant design ! For Dark Mode, look https://ant.design/docs/spec/dark#Design-Principles.
You can try the level 8 of the color ! like the blue-8 : #65b7f3

Of course, you don't need to have the same color as Ant Design. But in that case, I think you need to have a Graphic Charter. 😄😉

@NaBian
Copy link
Member

NaBian commented Oct 18, 2021

If I propose my point of vue : I have the same feeling concerning the dark mode, color are too saturated (not sure that the right word 😅). The most obvious exemple is to read the code example in the demo : image

In design, if you have a dark mode, color are useally less saturated (here again not sure of the word), like pastel. The goal is to have less agressiv colors for the user. Here an extreme exemple : image image

update latest code, and you will see:
image

@ghost1372
Copy link
Member

@NaBian can we change PrimaryBrush (Dark theme) for all controls? or we should only change for tabcontrol?

@NaBian
Copy link
Member

NaBian commented Oct 18, 2021

for all controls, of course, while we should use blue-6 not blue-8
1634568898(1)

@ghost1372
Copy link
Member

for all controls, of course, while we should use blue-6 not blue-8 1634568898(1)
They do not differ much😕
Untitled

@NaBian
Copy link
Member

NaBian commented Oct 18, 2021

we don't have designers. let's do what they say 😆 .

@Symbai
Copy link
Author

Symbai commented Oct 18, 2021

hmm.... how about this?

Much better thank you. This was also a possible solution I thought of since the selected tab is underlined. I also thought about reporting the watermark of textboxes is hard to read. But I figured out it is also on light/white mode hard to read. In my opinion it could be the same color as the disabled textbox (disabled textbox is still different because the of the different border color).

@Yopler
Copy link

Yopler commented Oct 19, 2021

update latest code, and you will see: image

Oh Beautiful 🤩
But the fact is that you have only change the color of the Code (https://github.com/HandyOrg/HandyControl/tree/master/src/Shared/HandyControlDemo_Shared/Resources/xshd) But not for the whole dark mode !

@Yopler
Copy link

Yopler commented Oct 19, 2021

for all controls, of course, while we should use blue-6 not blue-8 1634568898(1)

Here folowing rule for contrast in design. It is here call for web but it can apply to software because this rules apply for any computer screen. Here your contrast is 4.38 . That's a little low 😅

Web Content Accessibility Guidelines (WCAG) :
Regarding colors, the standard defines two levels of contrast ratio: AA (minimum contrast) and AAA (enhanced contrast).
The level AA requires a contrast ratio of at least 4.5:1 for normal text and 3:1 for large text (at least 18pt) or bold text.
The level AAA requires a contrast ratio of at least 7:1 for normal text and 4.5:1 for large text or bold text.

@Yopler
Copy link

Yopler commented Oct 19, 2021

I was using a color contrast checker to test the colors blue-6 and blue-8 :
Here the blue-8 :
image

and here the blue-6 :
image

my point here, is that color used in color.xaml and colorDark.xaml are the same :

  • PrimaryColor : #326cf3
  • Danger color : #db3340
  • Warning color : #e9af20
  • Info Color : #e9af20
  • SuccessCOlor : #2db84d

Background color like for button can stay the same but text color should change to follow contrast rule. Here for Tab you use the PrimaryColor and not the PrimaryTextColor.

@ghost1372 ghost1372 added 🏭 enhancement New feature or request 🤔 pending discussion It may take time to discuss. labels Oct 19, 2021
@ghost1372
Copy link
Member

level 8 color is good for tabs but not good for datagrid

level 8
image

But level 7 looks good

level 7

image

@Yopler
Copy link

Yopler commented Oct 19, 2021

level 8 color is good for tabs but not good for datagrid

level 8
image

But level 7 looks good

level 7

image

Yes , that what I was explaining. The color contrast is is about Text on background !
The fact here, is that the Tab is Text and you use a background color.
In your datagrid , the constrast is wrong because your blue-8 is your background (was text color / foreground in Tab) and your text is White

@Yopler
Copy link

Yopler commented Oct 19, 2021

When I got a little of time, I can try to make a figma for a graphic charter. It is not my profession, i have already done it sometimes for personnal project and for fun. I can try 🤔🤷‍♂️

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🏭 enhancement New feature or request 🤔 pending discussion It may take time to discuss.
Projects
None yet
Development

No branches or pull requests

4 participants