DataCollectionsContent.qml 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869
  1. // Copyright (c) 2019 Ultimaker B.V.
  2. // Cura is released under the terms of the LGPLv3 or higher.
  3. import QtQuick 2.10
  4. import QtQuick.Controls 2.3
  5. import UM 1.3 as UM
  6. import Cura 1.1 as Cura
  7. //
  8. // This component contains the content for the "Help us to improve Ultimaker Cura" page of the welcome on-boarding process.
  9. //
  10. Item
  11. {
  12. UM.I18nCatalog { id: catalog; name: "cura" }
  13. Label
  14. {
  15. id: titleLabel
  16. anchors.top: parent.top
  17. anchors.topMargin: 40
  18. anchors.horizontalCenter: parent.horizontalCenter
  19. horizontalAlignment: Text.AlignHCenter
  20. text: catalog.i18nc("@label", "Help us to improve Ultimaker Cura")
  21. color: UM.Theme.getColor("primary_button")
  22. font: UM.Theme.getFont("large_bold")
  23. renderType: Text.NativeRendering
  24. }
  25. Column
  26. {
  27. anchors.top: titleLabel.bottom
  28. anchors.topMargin: 80
  29. anchors.horizontalCenter: parent.horizontalCenter
  30. spacing: 60
  31. Image
  32. {
  33. id: curaImage
  34. anchors.horizontalCenter: parent.horizontalCenter
  35. source: UM.Theme.getImage("first_run_share_data")
  36. }
  37. Label
  38. {
  39. id: textLabel
  40. anchors.horizontalCenter: parent.horizontalCenter
  41. horizontalAlignment: Text.AlignHCenter
  42. text: catalog.i18nc("@text", "Ultimaker Cura collects anonymous data to improve print quality<br/>and user experience. <a href=\"TODO\">More information</a>")
  43. textFormat: Text.RichText
  44. font: UM.Theme.getFont("medium")
  45. renderType: Text.NativeRendering
  46. }
  47. }
  48. Cura.PrimaryButton
  49. {
  50. id: getStartedButton
  51. anchors.right: parent.right
  52. anchors.bottom: parent.bottom
  53. anchors.margins: 40
  54. text: catalog.i18nc("@button", "Next")
  55. width: 140
  56. fixedWidthMode: true
  57. onClicked: base.showNextPage()
  58. }
  59. }