mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-06 22:47:29 -06:00
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:
commit
2435a5665f
1 changed files with 23 additions and 18 deletions
|
@ -24,29 +24,34 @@ 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
|
||||||
UM.Label
|
|
||||||
{
|
{
|
||||||
id: titleLabel
|
id: headerColumn
|
||||||
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")
|
|
||||||
anchors.top: parent.top
|
anchors.top: parent.top
|
||||||
anchors.left: parent.left
|
anchors.left: parent.left
|
||||||
anchors.topMargin: UM.Theme.getSize("default_margin").height
|
|
||||||
anchors.leftMargin: UM.Theme.getSize("default_margin").height
|
|
||||||
}
|
|
||||||
|
|
||||||
Cura.TertiaryButton
|
|
||||||
{
|
|
||||||
id: learnMoreButton
|
|
||||||
visible: manager.isUcp
|
|
||||||
anchors.right: parent.right
|
anchors.right: parent.right
|
||||||
anchors.topMargin: UM.Theme.getSize("default_margin").height
|
anchors.topMargin: UM.Theme.getSize("default_margin").height
|
||||||
anchors.rightMargin: UM.Theme.getSize("default_margin").height
|
anchors.leftMargin: UM.Theme.getSize("default_margin").width
|
||||||
text: catalog.i18nc("@button", "Learn more")
|
anchors.rightMargin: anchors.leftMargin
|
||||||
iconSource: UM.Theme.getIcon("LinkExternal")
|
RowLayout
|
||||||
isIconOnRightSide: true
|
{
|
||||||
onClicked: Qt.openUrlExternally("https://support.ultimaker.com/s/article/000002979")
|
UM.Label
|
||||||
|
{
|
||||||
|
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")
|
||||||
|
font: UM.Theme.getFont("large")
|
||||||
|
}
|
||||||
|
Cura.TertiaryButton
|
||||||
|
{
|
||||||
|
id: learnMoreButton
|
||||||
|
visible: manager.isUcp
|
||||||
|
text: catalog.i18nc("@button", "Learn more")
|
||||||
|
iconSource: UM.Theme.getIcon("LinkExternal")
|
||||||
|
isIconOnRightSide: true
|
||||||
|
onClicked: Qt.openUrlExternally("https://support.ultimaker.com/s/article/000002979")
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue