Merge pull request #18734 from Ultimaker/CURA-11781-align-learn-more-button-in-ucp

learn more button alligned in UCP
This commit is contained in:
HellAholic 2024-03-28 10:36:35 +01:00 committed by GitHub
commit 2435a5665f
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -24,31 +24,36 @@ UM.Dialog
{ {
height: childrenRect.height + 2 * UM.Theme.getSize("default_margin").height height: childrenRect.height + 2 * UM.Theme.getSize("default_margin").height
color: UM.Theme.getColor("main_background") color: UM.Theme.getColor("main_background")
ColumnLayout
{
id: headerColumn
anchors.top: parent.top
anchors.left: parent.left
anchors.right: parent.right
anchors.topMargin: UM.Theme.getSize("default_margin").height
anchors.leftMargin: UM.Theme.getSize("default_margin").width
anchors.rightMargin: anchors.leftMargin
RowLayout
{
UM.Label UM.Label
{ {
id: titleLabel id: titleLabel
text: manager.isUcp? catalog.i18nc("@action:title Don't translate 'Universal Cura Project'", "Summary - Open Universal Cura Project (UCP)"): catalog.i18nc("@action:title", "Summary - Cura Project") text: manager.isUcp? catalog.i18nc("@action:title Don't translate 'Universal Cura Project'", "Summary - Open Universal Cura Project (UCP)"): catalog.i18nc("@action:title", "Summary - Cura Project")
font: UM.Theme.getFont("large") font: UM.Theme.getFont("large")
anchors.top: parent.top
anchors.left: parent.left
anchors.topMargin: UM.Theme.getSize("default_margin").height
anchors.leftMargin: UM.Theme.getSize("default_margin").height
} }
Cura.TertiaryButton Cura.TertiaryButton
{ {
id: learnMoreButton id: learnMoreButton
visible: manager.isUcp visible: manager.isUcp
anchors.right: parent.right
anchors.topMargin: UM.Theme.getSize("default_margin").height
anchors.rightMargin: UM.Theme.getSize("default_margin").height
text: catalog.i18nc("@button", "Learn more") text: catalog.i18nc("@button", "Learn more")
iconSource: UM.Theme.getIcon("LinkExternal") iconSource: UM.Theme.getIcon("LinkExternal")
isIconOnRightSide: true isIconOnRightSide: true
onClicked: Qt.openUrlExternally("https://support.ultimaker.com/s/article/000002979") onClicked: Qt.openUrlExternally("https://support.ultimaker.com/s/article/000002979")
} }
} }
}
}
Rectangle Rectangle
{ {