In QML, why is the color "grey" darker than "darkgrey"?
-
The reason for asking is a purely pseudo intellectual "why". I don't really want an answer. More looking for discussion about my place in the universe and how it relates to non-logical shades of color. Perhaps it comes from a standard somewhere that already contained a tainted color scheme. Maybe it was pure fancy. Possibly dev trolling front end devs by the back end maniacs. It doesn't have to be true, just interesting.
-
It used to bugged me too, so I checked and I can sleep better since, knowing that it's just the usual case of too many cooks in the kitchen, as often is with standards that evolve over many decades.
QML colors are derived from CSS colors. CSS is a resulting combination of loooong browser wars from the beginnings of the internet. Different browsers supported different color sets, then they tried to become more compatible with each other, there was some mix and matching, compatibility shims etc. etc. and at the end a weird combination of couple of sets was standardized in CSS.
So basically what happened with shades of grey is that the standard grey comes from HTML and is defined to be 50% brightness, while darkgrey is at 66% because it comes from the X11 color set in which grey was 75%, resulting in this silliness.
Just take a deep breath and let it go. In the end they are just words assigned to some values. It doesn't really matter. Nothing does. We don't either. At some point an asteroid will hit Earth again and all of this nonsense will go away ;)