Link color in RichText Qml Label [answered]
Currently link in a RichText QML Component Label are displayed with a dark blue color, this didn't integrate well with the other component, but this could be unreadeable with some ambiances.
Currently link in a RichText QML Component Label are displayed with a dark blue color, this didn't integrate well with the other component, but this could be unreadeable with some ambiances.
You can add css to the text value:
Label {
textFormat: Text.RichText;
text: "<style>a:link { color: " + Theme.highlightColor + "; }</style>" +
"<a href=https://together.jolla.com/'>Jolla2Gether</a>";
}
}
See http://qt-project.org/doc/qt-5.0/qtquick/qml-qtquick2-text.html#linkColor-prop
This appears to be a limitation in Qt atm. You can work around it by including CSS which refers to the Theme.
Hmm I wonder if the default style can be linked to the Theme?
Asked: 2013-12-28 15:24:26 +0300
Seen: 3,397 times
Last updated: Dec 28 '13