Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-82925

make QPalette extensible to support more color roles

    XMLWordPrintable

    Details

    • Type: Task
    • Status: Reported
    • Priority: P3: Somewhat important
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: GUI: Painting
    • Labels:
      None
    • Technical Risk:
      Normal

      Description

      QPalette has been using 64 bits for a "resolve mask"; i.e. in dev branch (pre-Qt 6) ATM it has

          using ResolveMask = quint64;
          inline ResolveMask resolve() const { return data.resolveMask; }
      

      and this is why it's not easy to add color roles: we would run out of bits.

      To support the Controls styles, for example, we may need to add the accent color, at the very least. Probably we should be able to add many more. And each new ColorRole should have values for each ColorGroup.

      Beyond that, it would be nice to make it extensible for users to be able to add custom colors for use in custom controls.

        Attachments

          Issue Links

          For Gerrit Dashboard: QTBUG-82925
          # Subject Branch Project Status CR V

            Activity

              People

              Assignee:
              srutledg Shawn Rutledge
              Reporter:
              srutledg Shawn Rutledge
              Votes:
              1 Vote for this issue
              Watchers:
              3 Start watching this issue

                Dates

                Created:
                Updated:

                  Gerrit Reviews

                  There is 1 open Gerrit change