Details
-
Task
-
Resolution: Unresolved
-
P3: Somewhat important
-
None
-
None
-
None
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
- is required for
-
QTBUG-73063 Qt Quick Changes in Qt 6
- Open
-
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-17015 QPalette - make it possible to define Custom Roles
- Open
-
QTBUG-979 Add color roles for warnings and errors
- Open
- relates to
-
QTBUG-109519 Add accent color support to QPalette
- Closed
-
QTBUG-62870 Material style colors
- Closed
Gerrit Reviews
For Gerrit Dashboard: QTBUG-82925 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
308109,3 | WIP Add more color roles to QPalette | dev | qt/qtbase | Status: NEW | -2 | 0 |
310734,7 | Move the QPalette::resolveMask into the private | dev | qt/qtbase | Status: MERGED | +2 | 0 |