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
ColumnLayout { minimumHeight: 300
anchors.fill: parent;
Item {
Layout.fillWidth: true;
Layout.fillHeight: true;
}
Image { Image {
Layout.alignment: Qt.AlignHCenter; id: logo
Layout.preferredWidth: parent.width * 0.75; width: parent.width * 0.75
Layout.preferredHeight: width * (1/4.25); height: width * (1/4.25)
source: UM.Theme.images.logo; source: UM.Theme.images.logo
sourceSize.width: width; sourceSize.width: width
sourceSize.height: height; sourceSize.height: height
anchors.centerIn: parent
anchors.verticalCenterOffset : -(height * 0.5)
} }
Label { Label {
Layout.alignment: Qt.AlignHCenter; id: version
text: "Cura 15.06 Beta"; text: "Cura 15.06 Beta"
font: UM.Theme.fonts.large; font: UM.Theme.fonts.large
anchors.horizontalCenter : logo.horizontalCenter
anchors.horizontalCenterOffset : (logo.width * 0.25)
anchors.top: logo.bottom
anchors.topMargin : 5
} }
Label { Label {
id: description
width: parent.width
//: About dialog application description //: About dialog application description
text: qsTr("End-to-end solution for fused filament 3D printing.") text: qsTr("End-to-end solution for fused filament 3D printing.")
wrapMode: Text.WordWrap
anchors.top: version.bottom
anchors.topMargin : 10
} }
Label { Label {
id: author_note
width: parent.width
//: 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 {