UnsupportedProfileIndication.qml 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  1. //Copyright (c) 2022 Ultimaker B.V.
  2. //Cura is released under the terms of the LGPLv3 or higher.
  3. import QtQuick 2.15
  4. import Cura 1.6 as Cura
  5. import UM 1.6 as UM
  6. //Message showing the user that the configuration they have selected has no profiles.
  7. Column
  8. {
  9. spacing: UM.Theme.getSize("default_margin").height
  10. Row
  11. {
  12. width: parent.width
  13. spacing: UM.Theme.getSize("thin_margin").width
  14. UM.StatusIcon
  15. {
  16. width: UM.Theme.getSize("notification_icon").width
  17. status: UM.StatusIcon.Status.ERROR
  18. }
  19. UM.Label
  20. {
  21. width: parent.width
  22. font: UM.Theme.getFont("default_bold")
  23. text: catalog.i18nc("@error", "Configuration not supported")
  24. }
  25. }
  26. UM.Label
  27. {
  28. width: parent.width
  29. text: catalog.i18nc("@message:text %1 is the name the printer uses for 'nozzle'.", "No profiles are available for the selected material/%1 configuration. Please change your configuration."
  30. ).arg(Cura.MachineManager.activeDefinitionVariantsName)
  31. }
  32. Cura.TertiaryButton
  33. {
  34. anchors.right: parent.right
  35. text: catalog.i18nc("@button:label", "Learn more")
  36. textFont: UM.Theme.getFont("default")
  37. iconSource: UM.Theme.getIcon("LinkExternal")
  38. isIconOnRightSide: true
  39. onClicked: Qt.openUrlExternally("https://support.ultimaker.com/hc/en-us/articles/360012909099")
  40. }
  41. }