[ui] Viewer2D: refactoring to simplify layouts

* fix mousearea order
* add alpha backgroud
* move HDR as a tool button

Conflicts:
	meshroom/ui/qml/Viewer/CircleGizmo.qml
	meshroom/ui/qml/Viewer/Viewer2D.qml
This commit is contained in:
Fabien Castan 2020-03-04 17:24:51 +01:00
parent c9c24b7ff0
commit d70c625fac
4 changed files with 323 additions and 290 deletions

View file

@ -95,21 +95,12 @@ Item {
id: imageViewerMenu
y: parent.height
x: -width + parent.width
Action {
id: useFloatImageViewerAction
text: "Use HDR Image Viewer"
checkable: true
checked: false
enabled: viewer2D.floatViewerAvailable
// tooltip: "Floating Point Image Viewer allows to visualize image with the full color dynamic. It is useful for HDR or RAW visualization. (Requires a plugin)"
}
Action {
id: displayImageToolBarAction
text: "Display HDR Toolbar"
checkable: true
checked: true
enabled: useFloatImageViewerAction.checked
enabled: viewer2D.useFloatImageViewer
}
Action {
id: displayImagePathAction
@ -124,7 +115,6 @@ Item {
Viewer2D {
id: viewer2D
anchors.fill: parent
useFloatImageViewer: useFloatImageViewerAction.checked
viewIn3D: root.load3DMedia