DataCollectionsContent.qml 2.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778
  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: UM.Theme.getSize("welcome_pages_default_margin").height
  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. // Area where the cloud contents can be put. Pictures, texts and such.
  26. Item
  27. {
  28. id: cloudContentsArea
  29. anchors.top: titleLabel.bottom
  30. anchors.bottom: getStartedButton.top
  31. anchors.left: parent.left
  32. anchors.right: parent.right
  33. anchors.margins: UM.Theme.getSize("default_margin").width
  34. Column
  35. {
  36. anchors.centerIn: parent
  37. spacing: UM.Theme.getSize("welcome_pages_default_margin").height
  38. Image
  39. {
  40. id: curaImage
  41. anchors.horizontalCenter: parent.horizontalCenter
  42. source: UM.Theme.getImage("first_run_share_data")
  43. }
  44. Label
  45. {
  46. id: textLabel
  47. anchors.horizontalCenter: parent.horizontalCenter
  48. horizontalAlignment: Text.AlignHCenter
  49. text: catalog.i18nc("@text", "Ultimaker Cura collects anonymous data to improve print quality<br/>and user experience. <a href=\"TODO\">More information</a>")
  50. textFormat: Text.RichText
  51. font: UM.Theme.getFont("medium")
  52. renderType: Text.NativeRendering
  53. }
  54. }
  55. }
  56. Cura.PrimaryButton
  57. {
  58. id: getStartedButton
  59. anchors.right: parent.right
  60. anchors.bottom: parent.bottom
  61. anchors.margins: UM.Theme.getSize("welcome_pages_default_margin").width
  62. text: catalog.i18nc("@button", "Next")
  63. width: 140
  64. fixedWidthMode: true
  65. onClicked: base.showNextPage()
  66. }
  67. }