mirror of
https://bitbucket.org/librepilot/librepilot.git
synced 2024-11-29 07:24:13 +01:00
LP-29 add "opaque" property to PfdView
This commit is contained in:
parent
444c126dab
commit
ff1da598b2
@ -22,5 +22,6 @@ import QtQuick 2.4
|
||||
import "pfd"
|
||||
|
||||
PfdView {
|
||||
opaque: false
|
||||
worldFile: "PfdTerrainWorld.qml"
|
||||
}
|
||||
|
@ -62,7 +62,7 @@ Item {
|
||||
sceneSize: info.sceneSize
|
||||
elementName: "info-bg"
|
||||
width: parent.width
|
||||
opacity: pfdContext.terrainEnabled ? 0.3 : 1
|
||||
opacity: opaque ? 0.3 : 1
|
||||
}
|
||||
|
||||
//
|
||||
@ -452,7 +452,7 @@ Item {
|
||||
x: Math.floor(scaledBounds.x * sceneItem.width)
|
||||
y: Math.floor(scaledBounds.y * sceneItem.height)
|
||||
|
||||
opacity: pfdContext.terrainEnabled ? 0.6 : 1
|
||||
opacity: opaque ? 0.6 : 1
|
||||
|
||||
states: State {
|
||||
name: "fading"
|
||||
|
@ -23,7 +23,8 @@ Rectangle {
|
||||
|
||||
color: "#515151"
|
||||
|
||||
property string worldFile: "PfdSimpleWorld.qml"
|
||||
property string worldFile: "PfdSimpleWorld.qml"
|
||||
property bool opaque: true
|
||||
|
||||
SvgElementImage {
|
||||
id: background
|
||||
|
Loading…
Reference in New Issue
Block a user