-
-
Notifications
You must be signed in to change notification settings - Fork 414
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
Improve High Contrast Compatibility #4
Comments
This proves that windows 11 will not have high contrast options. |
Thank you! I'll see if I can add a check for high contrast being enabled and swapping the background color. Black is fine right? |
would be better to simply use the current theme's background color instead, so that it works with custom themes too dunno much about autoit but in C you'd do GetSysColor(COLOR_WINDOW) |
@namazso I've implemented a similar call. Please try one of the dev builds when you can and let me know if it's any better. |
you are setting the default control color to the default window text color, which it already is by default: |
821ad9c is better but I'll see if I can work on improving it later on |
Even without high contrast, check the "Dark theme" in Windows 10 and 11. Beware of icons filled only with black and fully transparent elsewhere: they won't contrast correctly on the dark barkground of the side. You should use thre default colors of the windows settings which defines a background color, a foreground color and color for emphasis which should contrast with both.
For icons on the lateral side, render them on a contrasting medium colored background, notably because the non transparent parts are plain black. You can safely use the emphasis color, provided that you checked its ligthness is not too dark, otherwise compute a lighter color from the contrasting color (same hue, same saturation level, just make it use at least 50% lightness, suing the HSL color model). Then check that other text you'll place on this colored lateral panel will contrast enough with this background (ideally that text should be only plain black in the light time, or plain white in the dark theme, like for the rest of the UI |
@verdy-p it seems to use default colors now most of the time, on my custom dark theme it no longer looks like in my previous comment, so thats an improvement: |
Part of it is the fact that I have to deal with recoloring the background and recoloring the icon when I know nothing about GDI+. There's individual examples for both but not a single example that does both at the same time that I found in the language that I use. So I'm having to figure out how to have it draw how I want |
Namaszo: You're wrong, you almost can't see the icons on the left (social network links) and the right (information with the letter i encloded in a circle). The left part should have a lighter contrasting panel to see the (black) social icons. And the right part using normal background and normal text, should have its (i) icons using the emphasis color (usually blue or green, but never black or white, at top we can see an emphasis using red: generally the emphasis color can have any hue, medium lightness, and high saturation; while te normal background and text colors have very low or very high lightness, but still avoid using excessive contrasting 0% and 100% lightness: e,g. a safe choice is almost-black#222 text on white#FFF for light theme, or almost-white#DDD on black#000 for dark theme; the contrast should be around 80% of difference for normal text with low saturation If you have high saturation text used for emphasizing texts like active links or warnings/errors, the contrast of lightness with the background may be lower but the foreground and background should have a large enough difference of saturation, so the background should have low saturation, meaning it will be very greyish; and enough difference of lightness, so the emphasing text should be using a medium lightness and the background a very low or very high lightness, in other words the background can only be black or very dark (<20% lighness) in the dark theme, or white or very light (>80% lightness) in the light theme. For all this, used the HSL color model rather than the RGB model, to compute a suitable accessible palette, even if finally it is converted to sRGB. The the "high contrast" color theme, the thresholds of differences are higher than just 80%/20%, and you allow full black on full white with 100% difference. But this applies only to the normal text and normal background (that background can only be plain white or plain black). |
@verdy-p i just pointed out the improvement since the closing of the issue, i do know about the remaining problems. |
The text was updated successfully, but these errors were encountered: