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 ...@@ -18,15 +18,60 @@ import QGroundControl.Palette 1.0
import QGroundControl.ScreenTools 1.0 import QGroundControl.ScreenTools 1.0
Popup { Popup {
id: root
anchors.centerIn: parent anchors.centerIn: parent
width: mainFlickable.width width: mainFlickable.width + (padding * 2)
height: mainFlickable.height height: mainFlickable.height + (padding * 2)
padding: 0 padding: 2
modal: true modal: true
focus: true focus: true
background: Rectangle { property var pal: QGroundControl.globalPalette
color: QGroundControl.globalPalette.window 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 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