mirror of
https://github.com/alicevision/Meshroom.git
synced 2025-08-03 16:58:24 +02:00
[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:
parent
571560a43a
commit
2f2390e465
16 changed files with 46 additions and 43 deletions
|
@ -134,7 +134,7 @@ RowLayout {
|
|||
rightPadding: root.layoutDirection == Qt.LeftToRight ? 1 : 0
|
||||
text: attribute.name
|
||||
background: Rectangle {
|
||||
color: palette.window
|
||||
color: parent.palette.window
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue