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

make QPalette extensible to support more color roles

XMLWordPrintable

    • Icon: Task Task
    • Resolution: Unresolved
    • Icon: P3: Somewhat important P3: Somewhat important
    • None
    • None
    • GUI: Painting
    • None

      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.

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

            srutledg Shawn Rutledge
            srutledg Shawn Rutledge
            Votes:
            3 Vote for this issue
            Watchers:
            7 Start watching this issue

              Created:
              Updated:

                There is 1 open Gerrit change