[ui] fix Palette propagation

* bugfix: in latest PySide2 versions, application palette is not properly applied to all QtQuick Controls 2 components. Force this by exposing QApplication palette and bind it to the root ApplicationWindow.
* rename all "palette" ids to "activePalette" to avoid clashes with "palette" property on QtQuick Controls 2
* use parent component palette when it makes sense to propagate active/disabled style (instead of always using Active SystemPalette)
This commit is contained in:
Yann Lanthony 2018-05-28 15:28:47 +02:00
parent 571560a43a
commit 2f2390e465
16 changed files with 46 additions and 43 deletions

View file

@ -134,7 +134,7 @@ RowLayout {
rightPadding: root.layoutDirection == Qt.LeftToRight ? 1 : 0
text: attribute.name
background: Rectangle {
color: palette.window
color: parent.palette.window
}
}
}