Fix text wrapping and several other style issues of the About dialog

Contributes to Ultimaker/Uranium#43
This commit is contained in:
Tamara Hogenhout 2015-06-10 14:40:46 +02:00
parent aef2821464
commit 74cf027421

View File

@ -3,7 +3,6 @@
import QtQuick 2.2 import QtQuick 2.2
import QtQuick.Controls 1.1 import QtQuick.Controls 1.1
import QtQuick.Layouts 1.1
import QtQuick.Window 2.1 import QtQuick.Window 2.1
import UM 1.0 as UM import UM 1.0 as UM
@ -12,48 +11,53 @@ UM.Dialog {
id: base id: base
//: About dialog title //: About dialog title
title: qsTr("About Cura"); title: qsTr("About Cura")
minimumWidth: 400
minimumHeight: 300
ColumnLayout { Image {
anchors.fill: parent; id: logo
width: parent.width * 0.75
height: width * (1/4.25)
Item { source: UM.Theme.images.logo
Layout.fillWidth: true;
Layout.fillHeight: true;
}
Image { sourceSize.width: width
Layout.alignment: Qt.AlignHCenter; sourceSize.height: height
Layout.preferredWidth: parent.width * 0.75; anchors.centerIn: parent
Layout.preferredHeight: width * (1/4.25); anchors.verticalCenterOffset : -(height * 0.5)
}
source: UM.Theme.images.logo; Label {
id: version
sourceSize.width: width; text: "Cura 15.06 Beta"
sourceSize.height: height; font: UM.Theme.fonts.large
} anchors.horizontalCenter : logo.horizontalCenter
anchors.horizontalCenterOffset : (logo.width * 0.25)
anchors.top: logo.bottom
anchors.topMargin : 5
}
Label { Label {
Layout.alignment: Qt.AlignHCenter; id: description
width: parent.width
text: "Cura 15.06 Beta"; //: About dialog application description
font: UM.Theme.fonts.large; text: qsTr("End-to-end solution for fused filament 3D printing.")
} wrapMode: Text.WordWrap
anchors.top: version.bottom
anchors.topMargin : 10
}
Label { Label {
//: About dialog application description id: author_note
text: qsTr("End-to-end solution for fused filament 3D printing.") width: parent.width
}
Label { //: About dialog application author note
//: About dialog application author note text: qsTr("Cura has been developed by Ultimaker B.V. in cooperation with the community.")
text: qsTr("Cura has been developed by Ultimaker B.V. in cooperation with the community.") wrapMode: Text.WordWrap
} anchors.top: description.bottom
Item {
Layout.fillWidth: true;
Layout.fillHeight: true;
}
} }
rightButtons: Button { rightButtons: Button {