From 06445ef3bb9d48337630f59cfd69a55250bfd47a Mon Sep 17 00:00:00 2001 From: fieldOfView Date: Mon, 7 Mar 2016 15:19:27 +0100 Subject: [PATCH] Add link to troubleshooting guide to simple mode Fixes CURA-536 --- resources/qml/SidebarSimple.qml | 22 ++++++++++++++++++++++ resources/themes/cura/theme.json | 1 + 2 files changed, 23 insertions(+) diff --git a/resources/qml/SidebarSimple.qml b/resources/qml/SidebarSimple.qml index c877b67f5b..e1d3241d3d 100644 --- a/resources/qml/SidebarSimple.qml +++ b/resources/qml/SidebarSimple.qml @@ -268,4 +268,26 @@ Item } } } + + Rectangle { + id: tipsCell + anchors.top: helpersCellRight.bottom + anchors.topMargin: UM.Theme.getSize("default_margin").height + anchors.left: parent.left + width: parent.width + height: childrenRect.height + + Label{ + anchors.left: parent.left + anchors.leftMargin: UM.Theme.getSize("default_margin").width + width: parent.width + wrapMode: Text.WordWrap + //: Tips label + text: catalog.i18nc("@label","Need help improving your prints? Read the Ultimaker Troubleshooting Guides").arg("https://ultimaker.com/en/troubleshooting"); + font: UM.Theme.getFont("default"); + color: UM.Theme.getColor("text"); + linkColor: UM.Theme.getColor("text_link") + onLinkActivated: Qt.openUrlExternally(link) + } + } } diff --git a/resources/themes/cura/theme.json b/resources/themes/cura/theme.json index 1332aedca0..98ad721ab5 100644 --- a/resources/themes/cura/theme.json +++ b/resources/themes/cura/theme.json @@ -63,6 +63,7 @@ "secondary": [245, 245, 245, 255], "text": [24, 41, 77, 255], + "text_link": [12, 169, 227, 255], "text_inactive": [174, 174, 174, 255], "text_hover": [70, 84, 113, 255], "text_pressed": [12, 169, 227, 255],