1
0
Fork 0

Reduce the launcher minimum vertical height

This commit is contained in:
James Turner 2018-08-30 14:41:22 +01:00
parent b184a7f06e
commit ec7816a565
3 changed files with 5 additions and 4 deletions

View file

@ -79,7 +79,6 @@ Item {
Sidebar {
id: sidebar
width: Style.strutSize * 2
height: parent.height
z: 1
pagesModel: pagesModel

View file

@ -12,6 +12,8 @@ Rectangle {
readonly property int minimumHeight: mainColumn.childrenRect.height + flyButton.height
implicitWidth: flyButton.width
signal selectPage(var pageSource);
signal showMenu();
@ -70,7 +72,6 @@ Rectangle {
id: flyButton
label: qsTr("Fly!")
anchors.bottom: parent.bottom
anchors.bottomMargin: Style.margin
enabled: _launcher.canFly
disabledText: qsTr("The selected aircraft is not installed or has updates pending")
icon: "qrc:///svg/toolbox-fly"

View file

@ -6,7 +6,7 @@ Item {
id: root
width: Style.strutSize * 2
height: Style.strutSize * 2
height: iconImage.height + label.height + Style.margin * 3
property alias icon: iconImage.source
property alias label: label.text
@ -33,8 +33,9 @@ Item {
Image {
id: iconImage
anchors.centerIn: parent
anchors.horizontalCenter: parent.horizontalCenter
opacity: root.enabled ? 1.0 : 0.5
y: Style.margin
}
Text {