Add icon after Troubleshooting Guide text

Sadly the colour of this icon is hard-coded into the image... I didn't find any other solution to append an inline image after a multi-line text.

Contributes to issue CURA-4148.
This commit is contained in:
Ghostkeeper 2017-08-23 14:38:35 +02:00
parent 85a1526912
commit d55b8b2957
No known key found for this signature in database
GPG key ID: C5F96EE2BC0F7E75
2 changed files with 5 additions and 1 deletions

View file

@ -513,7 +513,7 @@ Item
anchors.rightMargin: UM.Theme.getSize("default_margin").width
wrapMode: Text.WordWrap
//: Tips label
text: catalog.i18nc("@label", "Need help improving your prints?<br>Read the <a href='%1'>Ultimaker Troubleshooting Guides</a>").arg("https://ultimaker.com/en/troubleshooting");
text: catalog.i18nc("@label", "Need help improving your prints?<br>Read the <a href='%1'>Ultimaker Troubleshooting Guides</a>").arg("https://ultimaker.com/en/troubleshooting") + "<img src='%1'></img>".arg(UM.Theme.getIcon("play"))
font: UM.Theme.getFont("default");
color: UM.Theme.getColor("text");
linkColor: UM.Theme.getColor("text_link")

View file

@ -0,0 +1,4 @@
<?xml version="1.0" encoding="UTF-8" ?>
<svg width="5px" height="20px" viewBox="0 0 5 20" version="1.1" xmlns="http://www.w3.org/2000/svg">
<polygon fill="#FFFFFF" opacity="0.8" points="5 10 0 13.5 0 6.5" />
</svg>

After

Width:  |  Height:  |  Size: 218 B