I found the commit https://github.com/qt/qtdeclarative/commit/1875ad7f92cad270cc5857d71096a4b46c27c562, is refactor the palette for QtQuick.
In a custom style plug-in, how should I set the default color palette for a certain type of control? such as:
By default, this Slider control will inherit the palette from the parent item, but I want it to have a different background color, maybe I can set the palette property for T.Slider, like "palette: MyStyle.sliderPalette", but in current, I need to resolve MyStyle.sliderPalette according to the palette of the parent item, by the palette background color of parent item to judgment it is Dark or Light color. I found that in the Material plug-in, It gave up using the palette of T.Slider, but directly used "Material.accentColor" to set the color for the Rectangle of the background item. This is usually It is not a good way. When MyStyle is set as the default plugin by the system, the user will found that the palette colors he set for Slider in the codes does not working.
|For Gerrit Dashboard: QTBUG-90251|
|329905,1||WIP: support process parent palette for QQuickControl||dev||qt/qtquickcontrols2||Status: NEW||-2||0|