mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-08-07 22:13:58 -06:00
Format links in descriptions to be clickable
Took some fiddling to get the regex right. But it's nice now. Contributes to issue CURA-8565.
This commit is contained in:
parent
d511c4542a
commit
b5c7dfe9a2
2 changed files with 18 additions and 4 deletions
|
@ -404,7 +404,11 @@ Rectangle
|
|||
text: packageData.description
|
||||
font: UM.Theme.getFont("default")
|
||||
color: UM.Theme.getColor("text")
|
||||
linkColor: UM.Theme.getColor("text_link")
|
||||
wrapMode: Text.Wrap
|
||||
textFormat: Text.RichText
|
||||
|
||||
onLinkActivated: UM.UrlUtil.openUrl(link, ["http", "https"])
|
||||
}
|
||||
|
||||
Cura.SecondaryButton
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue