mirror of
https://github.com/alicevision/Meshroom.git
synced 2025-06-01 18:31:58 +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
|
@ -20,8 +20,6 @@ FloatingPane {
|
|||
clip: true
|
||||
padding: 4
|
||||
|
||||
SystemPalette { id: palette }
|
||||
|
||||
/**
|
||||
* Convert GPS metadata to degree coordinates.
|
||||
*
|
||||
|
@ -173,7 +171,7 @@ FloatingPane {
|
|||
id: sizeHandle
|
||||
height: parent.contentHeight
|
||||
width: 1
|
||||
color: palette.mid
|
||||
color: root.palette.mid
|
||||
x: parent.width * 0.4
|
||||
MouseArea {
|
||||
anchors.fill: parent
|
||||
|
@ -198,7 +196,7 @@ FloatingPane {
|
|||
Label {
|
||||
width: parent.width
|
||||
padding: 2
|
||||
background: Rectangle { color: palette.mid }
|
||||
background: Rectangle { color: parent.palette.mid }
|
||||
text: section
|
||||
}
|
||||
}
|
||||
|
@ -240,7 +238,7 @@ FloatingPane {
|
|||
anchorPoint.y: circle.paintedHeight
|
||||
sourceItem: Text {
|
||||
id: circle
|
||||
color: palette.highlight
|
||||
color: root.palette.highlight
|
||||
font.pointSize: 18
|
||||
font.family: MaterialIcons.fontFamily
|
||||
text: MaterialIcons.location_on
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue