Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. General talk
  3. The Lounge
  4. In QML, why is the color "grey" darker than "darkgrey"?
Forum Updated to NodeBB v4.3 + New Features

In QML, why is the color "grey" darker than "darkgrey"?

Scheduled Pinned Locked Moved Unsolved The Lounge
2 Posts 2 Posters 1.0k Views 2 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • fcarneyF Offline
    fcarneyF Offline
    fcarney
    wrote on last edited by
    #1

    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.

    C++ is a perfectly valid school of magic.

    1 Reply Last reply
    1
    • Chris KawaC Offline
      Chris KawaC Offline
      Chris Kawa
      Lifetime Qt Champion
      wrote on last edited by
      #2

      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 ;)

      1 Reply Last reply
      4

      • Login

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • Users
      • Groups
      • Search
      • Get Qt Extensions
      • Unsolved