Message stylesheet; turn "> ..." into greentext
This commit is contained in:
@@ -66,7 +66,11 @@ Row {
|
||||
id: contentLabel
|
||||
width: parent.width
|
||||
|
||||
text: Utils.processedEventText(model) +
|
||||
Component.onCompleted: print(text)
|
||||
text: '<style type="text/css">' +
|
||||
theme.chat.message.stylesheet +
|
||||
'</style>' +
|
||||
Utils.processedEventText(model) +
|
||||
// time
|
||||
" <font size=" + theme.fontSize.small +
|
||||
"px color=" + theme.chat.message.date + ">" +
|
||||
|
@@ -117,6 +117,11 @@ QtObject {
|
||||
property color background: colors.background2
|
||||
property color body: colors.foreground
|
||||
property color date: colors.foregroundDim
|
||||
|
||||
property color greenTextColor: Ut.hsl(80, 60, 25)
|
||||
|
||||
property string stylesheet:
|
||||
".greentext { color: " + greenTextColor + " }"
|
||||
}
|
||||
|
||||
property QtObject daybreak: QtObject {
|
||||
|
Reference in New Issue
Block a user