mirror of
https://github.com/alicevision/Meshroom.git
synced 2025-06-05 20:31:56 +02:00
18 lines
467 B
QML
18 lines
467 B
QML
import QtQuick 2.15
|
|
import QtQuick.Controls 2.15
|
|
import QtQuick.Layouts 1.11
|
|
|
|
/**
|
|
* 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
|
|
property int radius: 1
|
|
|
|
padding: 6
|
|
anchors.margins: 2
|
|
background: Rectangle { color: root.palette.base; opacity: opaque ? 1.0 : 0.7; radius: root.radius }
|
|
}
|