Spectral/qml/component/AutoLabel.qml

17 lines
426 B
QML
Raw Normal View History

2018-09-04 06:58:41 +00:00
import QtQuick 2.9
import QtQuick.Controls 2.2
import QtQuick.Controls.Material 2.2
import Spectral.Settings 0.1
2018-09-04 06:58:41 +00:00
Label {
property bool coloredBackground
color: coloredBackground ? "white": Material.foreground
wrapMode: Label.Wrap
linkColor: coloredBackground ? "white" : Material.accent
textFormat: MSettings.richText ? Text.RichText : Text.StyledText
2018-09-04 13:13:14 +00:00
2018-09-04 06:58:41 +00:00
onLinkActivated: Qt.openUrlExternally(link)
}