Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/Ultimaker/Cura.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGhostkeeper <rubend@tutanota.com>2022-06-14 17:59:23 +0300
committerGhostkeeper <rubend@tutanota.com>2022-06-14 17:59:23 +0300
commit5c15ac68b89ae7c526c319ab0316f4cf7333c584 (patch)
tree295748f04204a526efff89c1d7aa9cb531a44e67 /resources/qml
parentb8e37936319625327f79073f7141bc7bd64d819b (diff)
Add a design for the notification when there's no recommended profile
Looks more harsh than it should be, perhaps. I'd prefer if we could add some text that says that you can create your own custom profiles too... Contributes to issue CURA-8849.
Diffstat (limited to 'resources/qml')
-rw-r--r--resources/qml/PrintSetupSelector/Recommended/UnsupportedProfileIndication.qml54
1 files changed, 54 insertions, 0 deletions
diff --git a/resources/qml/PrintSetupSelector/Recommended/UnsupportedProfileIndication.qml b/resources/qml/PrintSetupSelector/Recommended/UnsupportedProfileIndication.qml
new file mode 100644
index 0000000000..86852de4a0
--- /dev/null
+++ b/resources/qml/PrintSetupSelector/Recommended/UnsupportedProfileIndication.qml
@@ -0,0 +1,54 @@
+//Copyright (c) 2022 Ultimaker B.V.
+//Cura is released under the terms of the LGPLv3 or higher.
+
+import QtQuick 2.15
+
+import Cura 1.6 as Cura
+import UM 1.6 as UM
+
+//Message showing the user that the configuration they have selected has no profiles.
+Column
+{
+ spacing: UM.Theme.getSize("default_margin").height
+
+ Row
+ {
+ width: parent.width
+
+ spacing: UM.Theme.getSize("thin_margin").width
+
+ UM.StatusIcon
+ {
+ width: UM.Theme.getSize("notification_icon").width
+ status: UM.StatusIcon.Status.ERROR
+ }
+
+ UM.Label
+ {
+ width: parent.width
+
+ font: UM.Theme.getFont("default_bold")
+ text: catalog.i18nc("@error", "Configuration not supported")
+ }
+ }
+
+ UM.Label
+ {
+ width: parent.width
+
+ 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."
+ ).arg(Cura.MachineManager.activeDefinitionVariantsName)
+ }
+
+ Cura.TertiaryButton
+ {
+ anchors.right: parent.right
+
+ text: catalog.i18nc("@button:label", "Learn more")
+ textFont: UM.Theme.getFont("default")
+ iconSource: UM.Theme.getIcon("LinkExternal")
+ isIconOnRightSide: true
+
+ onClicked: Qt.openUrlExternally("https://ultimaker.com/") //TODO: Fill in the actual link.
+ }
+} \ No newline at end of file