Details
-
Task
-
Resolution: Done
-
Not Evaluated
-
None
-
None
-
17c589df94a2245ee92d45839c2cba73566d7310
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
- is required for
-
QTBUG-106381 Extend appearance, palette and theme handling in Qt 6.5
- Open
- relates to
-
QTBUG-82925 make QPalette extensible to support more color roles
- Reported
-
QTBUG-63331 Add support for palettes in the existing styles
- Open
-
QTBUG-82540 Make PDF views stylable
- Closed
-
QTBUG-53510 Property for highlighted link color in Text
- Reported
-
QTBUG-62870 Material style colors
- Closed