learn more button alligned in UCP

CURA-11781
This commit is contained in:
Saumya Jain 2024-03-26 16:35:59 +01:00
parent d3b1294e8b
commit dc34fbc047

View file

@ -24,29 +24,29 @@ 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")
RowLayout
UM.Label
{ {
id: titleLabel UM.Label
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") id: titleLabel
anchors.top: parent.top 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")
anchors.left: parent.left font: UM.Theme.getFont("large")
anchors.topMargin: UM.Theme.getSize("default_margin").height anchors.left: parent.left
anchors.leftMargin: UM.Theme.getSize("default_margin").height 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 text: catalog.i18nc("@button", "Learn more")
anchors.topMargin: UM.Theme.getSize("default_margin").height iconSource: UM.Theme.getIcon("LinkExternal")
anchors.rightMargin: UM.Theme.getSize("default_margin").height anchors.left: titleLabel.right
text: catalog.i18nc("@button", "Learn more") anchors.topMargin: UM.Theme.getSize("default_margin").height
iconSource: UM.Theme.getIcon("LinkExternal") anchors.leftMargin: UM.Theme.getSize("default_margin").height
isIconOnRightSide: true isIconOnRightSide: true
onClicked: Qt.openUrlExternally("https://support.ultimaker.com/s/article/000002979") onClicked: Qt.openUrlExternally("https://support.ultimaker.com/s/article/000002979")
}
} }
} }