Cura/resources/qml/AboutDialog.qml
fieldOfView 9fe3eb4f01 Add width, height in addition to minimumWidth, minumumHeight to fix retina issue on OSX
Without these additions, windows (preferences, wizards, about) open larger than fullscreen, making some controls inaccessible

Fixes CURA-504
2016-04-07 18:06:38 +02:00

83 lines
1.9 KiB
QML

// Copyright (c) 2015 Ultimaker B.V.
// Cura is released under the terms of the AGPLv3 or higher.
import QtQuick 2.2
import QtQuick.Controls 1.1
import QtQuick.Window 2.1
import UM 1.1 as UM
UM.Dialog
{
id: base
//: About dialog title
title: catalog.i18nc("@title:window","About Cura")
minimumWidth: 400 * Screen.devicePixelRatio
minimumHeight: 300 * Screen.devicePixelRatio
width: minimumWidth
height: minimumHeight
//UM.I18nCatalog { id: catalog; }
Image
{
id: logo
width: parent.width * 0.75
height: width * (1/4.25)
source: UM.Theme.getImage("logo")
sourceSize.width: width
sourceSize.height: height
anchors.centerIn: parent
anchors.verticalCenterOffset : -(height * 0.5)
UM.I18nCatalog{id: catalog; name:"cura"}
}
Label
{
id: version
text: "Cura %1".arg(UM.Application.version)
font: UM.Theme.getFont("large")
anchors.horizontalCenter : logo.horizontalCenter
anchors.horizontalCenterOffset : (logo.width * 0.25)
anchors.top: logo.bottom
anchors.topMargin : 5
}
Label
{
id: description
width: parent.width
//: About dialog application description
text: catalog.i18nc("@label","End-to-end solution for fused filament 3D printing.")
wrapMode: Text.WordWrap
anchors.top: version.bottom
anchors.topMargin : 10
}
Label
{
id: author_note
width: parent.width
//: About dialog application author note
text: catalog.i18nc("@info:credit","Cura has been developed by Ultimaker B.V. in cooperation with the community.")
wrapMode: Text.WordWrap
anchors.top: description.bottom
}
rightButtons: Button
{
//: Close about dialog button
text: catalog.i18nc("@action:button","Close");
onClicked: base.visible = false;
}
}