Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Tweaks to Popup visuals #8656

Merged
merged 1 commit into from
Apr 14, 2020
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
55 changes: 50 additions & 5 deletions src/QmlControls/QGCPopupDialogContainer.qml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down