Spectral/imports/Spectral/Component/Timeline/StateDelegate.qml

29 lines
634 B
QML
Raw Normal View History

2018-12-07 01:18:42 +00:00
import QtQuick 2.12
2018-12-22 14:25:03 +00:00
import QtQuick.Controls 2.12
import QtQuick.Layouts 1.12
import QtQuick.Controls.Material 2.12
2018-10-01 08:07:48 +00:00
import Spectral.Setting 0.1
2018-09-04 06:58:41 +00:00
Label {
text: "<b>" + author.displayName + "</b> " + display
2018-12-22 14:25:03 +00:00
color: MPalette.foreground
font.pixelSize: 13
font.weight: Font.Medium
2018-09-04 06:58:41 +00:00
2018-11-16 12:30:42 +00:00
topPadding: 8
bottomPadding: 8
2018-12-22 14:25:03 +00:00
leftPadding: 24
rightPadding: 24
2018-09-04 06:58:41 +00:00
wrapMode: Label.Wrap
textFormat: MSettings.richText ? Text.RichText : Text.StyledText
onLinkActivated: Qt.openUrlExternally(link)
background: Rectangle {
color: MPalette.background
2018-12-22 14:25:03 +00:00
radius: 4
antialiasing: true
2018-09-04 06:58:41 +00:00
}
}