Unverified Commit 6d2f100e authored by Don Gagne's avatar Don Gagne Committed by GitHub

Merge pull request #8656 from mavlink/PopupVisuals

Tweaks to Popup visuals
parents 2d83e17e 3178f7de
......@@ -18,15 +18,60 @@ import QGroundControl.Palette 1.0
import QGroundControl.ScreenTools 1.0
Popup {
id: root
anchors.centerIn: parent
width: mainFlickable.width
height: mainFlickable.height
padding: 0
width: mainFlickable.width + (padding * 2)
height: mainFlickable.height + (padding * 2)
padding: 2
modal: true
focus: true
background: Rectangle {
color: QGroundControl.globalPalette.window
property var pal: QGroundControl.globalPalette
property real frameSize: ScreenTools.defaultFontPixelWidth
background: Item {
Rectangle {
anchors.left: parent.left
anchors.top: parent.top
width: frameSize
height: frameSize
color: pal.text
visible: enabled
}
Rectangle {
anchors.right: parent.right
anchors.top: parent.top
width: frameSize
height: frameSize
color: pal.text
visible: enabled
}
Rectangle {
anchors.left: parent.left
anchors.bottom: parent.bottom
width: frameSize
height: frameSize
color: pal.text
visible: enabled
}
Rectangle {
anchors.right: parent.right
anchors.bottom: parent.bottom
width: frameSize
height: frameSize
color: pal.text
visible: enabled
}
Rectangle {
anchors.margins: root.padding
anchors.fill: parent
color: pal.window
}
}
property string title
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment