Reduce the launcher minimum vertical height
This commit is contained in:
parent
b184a7f06e
commit
ec7816a565
3 changed files with 5 additions and 4 deletions
|
@ -79,7 +79,6 @@ Item {
|
||||||
|
|
||||||
Sidebar {
|
Sidebar {
|
||||||
id: sidebar
|
id: sidebar
|
||||||
width: Style.strutSize * 2
|
|
||||||
height: parent.height
|
height: parent.height
|
||||||
z: 1
|
z: 1
|
||||||
pagesModel: pagesModel
|
pagesModel: pagesModel
|
||||||
|
|
|
@ -12,6 +12,8 @@ Rectangle {
|
||||||
|
|
||||||
readonly property int minimumHeight: mainColumn.childrenRect.height + flyButton.height
|
readonly property int minimumHeight: mainColumn.childrenRect.height + flyButton.height
|
||||||
|
|
||||||
|
implicitWidth: flyButton.width
|
||||||
|
|
||||||
signal selectPage(var pageSource);
|
signal selectPage(var pageSource);
|
||||||
|
|
||||||
signal showMenu();
|
signal showMenu();
|
||||||
|
@ -70,7 +72,6 @@ Rectangle {
|
||||||
id: flyButton
|
id: flyButton
|
||||||
label: qsTr("Fly!")
|
label: qsTr("Fly!")
|
||||||
anchors.bottom: parent.bottom
|
anchors.bottom: parent.bottom
|
||||||
anchors.bottomMargin: Style.margin
|
|
||||||
enabled: _launcher.canFly
|
enabled: _launcher.canFly
|
||||||
disabledText: qsTr("The selected aircraft is not installed or has updates pending")
|
disabledText: qsTr("The selected aircraft is not installed or has updates pending")
|
||||||
icon: "qrc:///svg/toolbox-fly"
|
icon: "qrc:///svg/toolbox-fly"
|
||||||
|
|
|
@ -6,7 +6,7 @@ Item {
|
||||||
id: root
|
id: root
|
||||||
|
|
||||||
width: Style.strutSize * 2
|
width: Style.strutSize * 2
|
||||||
height: Style.strutSize * 2
|
height: iconImage.height + label.height + Style.margin * 3
|
||||||
|
|
||||||
property alias icon: iconImage.source
|
property alias icon: iconImage.source
|
||||||
property alias label: label.text
|
property alias label: label.text
|
||||||
|
@ -33,8 +33,9 @@ Item {
|
||||||
|
|
||||||
Image {
|
Image {
|
||||||
id: iconImage
|
id: iconImage
|
||||||
anchors.centerIn: parent
|
anchors.horizontalCenter: parent.horizontalCenter
|
||||||
opacity: root.enabled ? 1.0 : 0.5
|
opacity: root.enabled ? 1.0 : 0.5
|
||||||
|
y: Style.margin
|
||||||
}
|
}
|
||||||
|
|
||||||
Text {
|
Text {
|
||||||
|
|
Loading…
Add table
Reference in a new issue