Meshroom/meshroom/ui/qml/Controls/FloatingPane.qml
Yann Lanthony d4c0a4975a [ui] add "Controls" module to centralize common UI components
* add FloatingPane control + use it in Viewer3D
2018-03-23 11:17:11 +01:00

17 lines
427 B
QML

import QtQuick 2.9
import QtQuick.Controls 2.3
import QtQuick.Layouts 1.3
/**
* FloatingPane provides a Pane with a slightly transparent default background
* using palette.base as color. Useful to create floating toolbar/overlays.
*/
Pane {
id: root
property bool opaque: false
padding: 6
anchors.margins: 2
background: Rectangle { color: root.palette.base; opacity: opaque ? 1.0 : 0.7; radius: 1 }
}