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

Add accent color support to QPalette

    XMLWordPrintable

Details

    • Task
    • Resolution: Done
    • Not Evaluated
    • 6.6
    • None
    • GUI: Look'n'Feel
    • None

    Description

      Platform themes on Windows and macOS define an "accent color" that is used by relevant UI components to highlight certain parts. It's not always the same as the text highlighting (which we already have in QPalette::Highlight and QPalette::HighlightedText), ie. a line edit on Windows might use the accent color to show that the line edit has focus, while using a different color for the text highlighting.

      QPalette needs to get a new color role, which comes with a number of challenges:

      • we have already used 63 of the 64 bits in the resolve mask (21 color roles, 3 color groups)
      • For each color role, we need 3 bits (one for each color group) - so we need 2 more bits
      • the ResolveMask is a 64bit value and used in public, but internal API
      • new palette color roles need to be supported in Qt style sheets and in the respective Qt Quick APIs

      Attachments

        Issue Links

          No reviews matched the request. Check your Options in the drop-down menu of this sections header.

          Activity

            People

              qt.team.quick.subscriptions Qt Quick and Widgets Team
              vhilshei Volker Hilsheimer
              Votes:
              1 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes