diff --git a/plugins/MachineSettingsAction/MachineSettingsExtruderTab.qml b/plugins/MachineSettingsAction/MachineSettingsExtruderTab.qml index 5e1ddc2f3f..ab7442bd4e 100644 --- a/plugins/MachineSettingsAction/MachineSettingsExtruderTab.qml +++ b/plugins/MachineSettingsAction/MachineSettingsExtruderTab.qml @@ -182,7 +182,7 @@ Item Cura.GcodeTextArea // "Extruder Start G-code" { anchors.top: parent.top - anchors.bottom: parent.bottom + anchors.bottom: buttonLearnMore.top anchors.bottomMargin: UM.Theme.getSize("default_margin").height anchors.left: parent.left width: base.columnWidth - UM.Theme.getSize("default_margin").width @@ -196,7 +196,7 @@ Item Cura.GcodeTextArea // "Extruder End G-code" { anchors.top: parent.top - anchors.bottom: parent.bottom + anchors.bottom: buttonLearnMore.top anchors.bottomMargin: UM.Theme.getSize("default_margin").height anchors.right: parent.right width: base.columnWidth - UM.Theme.getSize("default_margin").width @@ -206,5 +206,17 @@ Item settingKey: "machine_extruder_end_code" settingStoreIndex: propertyStoreIndex } + + Cura.TertiaryButton + { + id: buttonLearnMore + + text: catalog.i18nc("@button", "Learn more") + iconSource: UM.Theme.getIcon("LinkExternal") + isIconOnRightSide: true + onClicked: Qt.openUrlExternally("https://github.com/Ultimaker/Cura/wiki/Start-End-G%E2%80%90Code") + anchors.bottom: parent.bottom + anchors.right: parent.right + } } } diff --git a/plugins/MachineSettingsAction/MachineSettingsPrinterTab.qml b/plugins/MachineSettingsAction/MachineSettingsPrinterTab.qml index 740e248828..b01060c1df 100644 --- a/plugins/MachineSettingsAction/MachineSettingsPrinterTab.qml +++ b/plugins/MachineSettingsAction/MachineSettingsPrinterTab.qml @@ -376,7 +376,7 @@ Item anchors { top: upperBlock.bottom - bottom: parent.bottom + bottom: buttonLearnMore.top left: parent.left right: parent.right margins: UM.Theme.getSize("default_margin").width @@ -403,5 +403,19 @@ Item settingKey: "machine_end_gcode" settingStoreIndex: propertyStoreIndex } + + } + + Cura.TertiaryButton + { + id: buttonLearnMore + + text: catalog.i18nc("@button", "Learn more") + iconSource: UM.Theme.getIcon("LinkExternal") + isIconOnRightSide: true + onClicked: Qt.openUrlExternally("https://github.com/Ultimaker/Cura/wiki/Start-End-G%E2%80%90Code") + anchors.bottom: parent.bottom + anchors.right: parent.right + anchors.margins: UM.Theme.getSize("default_margin").width } }