mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-24 07:03:56 -06:00
Use custom style for the links in the what's new textArea
A style had to be prepended in the text to make sure that it adheres to the style we want instead of using the OS-based link style. Note: For some reason QML ignores all other link-style tags (such as `a:hover`, `a:focus` etc) apart from `a:link`, so we can only change the style for the normal link and NOT for when it is clicked or hovered. CURA-8380
This commit is contained in:
parent
6b5ea9086f
commit
01b0d78f7b
1 changed files with 1 additions and 1 deletions
|
@ -119,7 +119,7 @@ Item
|
|||
do_borders: false
|
||||
|
||||
textArea.wrapMode: TextEdit.Wrap
|
||||
textArea.text: manager.getSubpageText(index)
|
||||
textArea.text: "<style>a:link { color: " + UM.Theme.getColor("text_link") + "; text-decoration: underline; }</style>" + manager.getSubpageText(index)
|
||||
textArea.textFormat: Text.RichText
|
||||
textArea.readOnly: true
|
||||
textArea.font: UM.Theme.getFont("default")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue