You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
29 lines
808 B
29 lines
808 B
10 years ago
|
import QtQuick 2.2
|
||
|
import QtQuick.Controls 1.2
|
||
|
import QtQuick.Controls.Styles 1.2
|
||
|
|
||
|
import QGroundControl.Palette 1.0
|
||
|
|
||
|
Button {
|
||
|
property var __qgcPal: QGCPalette { colorGroup: enabled ? QGCPalette.Active : QGCPalette.Disabled }
|
||
|
|
||
|
style: ButtonStyle {
|
||
|
background: Rectangle {
|
||
|
implicitWidth: 100
|
||
|
implicitHeight: 25
|
||
|
color: control.hovered ? control.__qgcPal.buttonHighlight : control.__qgcPal.button
|
||
|
}
|
||
|
|
||
|
label: Text {
|
||
|
width: parent.width
|
||
|
height: parent.height
|
||
|
|
||
|
verticalAlignment: TextEdit.AlignVCenter
|
||
|
horizontalAlignment: TextEdit.AlignHCenter
|
||
|
|
||
|
text: control.text
|
||
|
color: control.__qgcPal.buttonText
|
||
|
}
|
||
|
}
|
||
|
}
|